Commit bd9319ae authored by wyykak's avatar wyykak

fix c74563015.lua

parent c6e52ecd
...@@ -51,7 +51,7 @@ function c74563015.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -51,7 +51,7 @@ function c74563015.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c74563015.desfilter2(c,num) function c74563015.desfilter2(c,num)
return c74563015.customdef(c)<=num return c:IsFaceup() and c74563015.customdef(c)<=num
end end
function c74563015.eqtg(e,tp,eg,ep,ev,re,r,rp,chk) function c74563015.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -62,21 +62,8 @@ function c74563015.eqtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,21 +62,8 @@ function c74563015.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c74563015.desfilter2,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,1,nil,lp) and counter1-counter2<=0 end if chk==0 then return Duel.IsExistingMatchingCard(c74563015.desfilter2,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,1,nil,lp) and counter1-counter2<=0 end
Duel.RegisterFlagEffect(tp,74563015,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,74563015,RESET_PHASE+PHASE_END,0,1)
end end
function c74563015.gselect(g,num)
local def=0
local tc=g:GetFirst()
while tc do
if tc:IsDefenseAbove(0) and tc:IsFaceup() then
def=def+tc:GetDefense()
else
def=def+1200
end
tc=g:GetNext()
end
return def<=num
end
function c74563015.customdef(c) function c74563015.customdef(c)
if c:IsType(TYPE_LINK|TYPE_SPELL|TYPE_TRAP) and c:IsFaceup() then if c:IsType(TYPE_LINK|TYPE_SPELL|TYPE_TRAP) then
return 1200 return 1200
else else
return c:GetDefense() return c:GetDefense()
......
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