Commit d0aa81b6 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12003008.lua

parent c6d5fe8f
......@@ -41,15 +41,15 @@ function c12003008.initial_effect(c)
e1:SetOperation(c12003008.rmop)
c:RegisterEffect(e1)
end
function c12003008.costfilter(c)
function c12003008.costfilter1(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsDiscardable()
end
function c12003008.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsDiscardable()
and Duel.IsExistingMatchingCard(c12003008.costfilter,tp,LOCATION_HAND,0,1,c) end
and Duel.IsExistingMatchingCard(c12003008.costfilter1,tp,LOCATION_HAND,0,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local g=Duel.SelectMatchingCard(tp,c12003008.costfilter,tp,LOCATION_HAND,0,1,1,c)
local g=Duel.SelectMatchingCard(tp,c12003008.costfilter1,tp,LOCATION_HAND,0,1,1,c)
g:AddCard(c)
Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD)
end
......@@ -102,4 +102,4 @@ function c12003008.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment