Commit c7412172 authored by wyykak's avatar wyykak

fix 74563014-6

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 949b02c6
......@@ -75,7 +75,7 @@ function c74563014.gselect(g,num)
local def=0
local tc=g:GetFirst()
while tc do
if tc:IsDefenseAbove(0) and tc:IsFaceup() then
if tc:IsType(TYPE_MONSTER) and tc:IsDefenseAbove(0) and tc:IsFaceup() then
def=def+tc:GetDefense()
else
def=def+1200
......
......@@ -69,10 +69,10 @@ function c74563015.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterFlagEffect(tp,74563015,RESET_PHASE+PHASE_END,0,1)
end
function c74563015.customdef(c)
if c:IsType(TYPE_LINK|TYPE_SPELL|TYPE_TRAP) then
return 1200
else
if c:IsType(TYPE_MONSTER) and c:IsDefenseAbove(0) and c:IsFaceup() then
return c:GetDefense()
else
return 1200
end
end
function c74563015.eqop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -78,7 +78,7 @@ function c74563016.gselect(g,num)
local def=0
local tc=g:GetFirst()
while tc do
if tc:IsDefenseAbove(0) and tc:IsFaceup() then
if tc:IsType(TYPE_MONSTER) and tc:IsDefenseAbove(0) and tc:IsFaceup() then
def=def+tc:GetDefense()
else
def=def+1200
......
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