Commit 9da642fe authored by salix5's avatar salix5

sangan

parent 8c25611d
...@@ -36,12 +36,13 @@ function c26202165.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,12 +36,13 @@ function c26202165.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetValue(c26202165.aclimit) e1:SetValue(c26202165.aclimit)
e1:SetLabel(tc:GetCode()) e1:SetLabelObject(tc)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
end end
end end
function c26202165.aclimit(e,re,tp) function c26202165.aclimit(e,re,tp)
return re:GetHandler():IsCode(e:GetLabel()) local tc=e:GetLabelObject()
return re:GetHandler():IsCode(tc:GetCode()) and not re:GetHandler():IsImmuneToEffect(e)
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