Commit f5f660ac authored by DailyShana's avatar DailyShana

fix value check of EFFECT_AVOID_BATTLE_DAMAGE

c==nil means direct attack
parent af855879
...@@ -32,7 +32,7 @@ function c2980764.initial_effect(c) ...@@ -32,7 +32,7 @@ function c2980764.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c2980764.tglimit(e,c) function c2980764.tglimit(e,c)
return c:IsAttribute(ATTRIBUTE_DARK) return c and c:IsAttribute(ATTRIBUTE_DARK)
end end
function c2980764.sumlimit(e,c) function c2980764.sumlimit(e,c)
return c:IsAttribute(ATTRIBUTE_DARK) return c:IsAttribute(ATTRIBUTE_DARK)
......
...@@ -65,5 +65,5 @@ function c72006609.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,5 +65,5 @@ function c72006609.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c72006609.tglimit(e,c) function c72006609.tglimit(e,c)
return not c:GetBattleTarget():GetColumnGroup():IsContains(c) return c and not c:GetBattleTarget():GetColumnGroup():IsContains(c)
end 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