Commit 70121c9f authored by JoyJ's avatar JoyJ

fix

parent 640b8ef4
No preview for this file type
......@@ -78,11 +78,9 @@ function c10000010.initial_effect(c)
ex2:SetType(EFFECT_TYPE_SINGLE)
ex2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
ex2:SetCode(EFFECT_IMMUNE_EFFECT)
ex2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
ex2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
ex2:SetRange(LOCATION_MZONE)
ex2:SetReset(RESET_EVENT+RESETS_STANDARD)
ex2:SetValue(c10000010.immune)
ex2:SetLabel(typ)
c:RegisterEffect(ex2)
local ex3=Effect.CreateEffect(c)
ex3:SetDescription(aux.Stringid(10000010,3))
......@@ -124,8 +122,8 @@ function c10000010.sptgop(e,tp,eg,ep,ev,re,r,rp)
end
function c10000010.immune(e,te)
return te:GetOwner()~=e:GetOwner()
and (e:GetOwner():IsSummonType(SUMMON_TYPE_SPECIAL)
or ((te:GetHandler():GetOriginalType())&(TYPE_TRAP+TYPE_MONSTER)>0))
and (e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
or te:GetHandler():IsType(TYPE_TRAP+TYPE_MONSTER))
end
function c10000010.dthtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGrave()
......
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