Commit 4992b815 authored by Tachibana's avatar Tachibana

ndyd

parent 35b6f235
...@@ -27,26 +27,21 @@ function c33710904.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -27,26 +27,21 @@ function c33710904.tgop(e,tp,eg,ep,ev,re,r,rp)
local sum=(og:GetSum(Card.GetTextAttack)+og:GetSum(Card.GetTextDefense))*3 local sum=(og:GetSum(Card.GetTextAttack)+og:GetSum(Card.GetTextDefense))*3
if sum==0 then sum=8000 end if sum==0 then sum=8000 end
Duel.SetLP(1-tp,sum) Duel.SetLP(1-tp,sum)
local e1=Effect.CreateEffect(e:GetHandler()) for tc in aux.Next(og) do
e1:SetType(EFFECT_TYPE_FIELD) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetValue(c33710904.aclimit) e1:SetTargetRange(0,1)
e1:SetLabelObject(og) e1:SetValue(c33710904.aclimit)
Duel.RegisterEffect(e1,tp) e1:SetLabel(tc:GetOriginalCode())
Duel.RegisterEffect(e1,tp)
end
end end
end end
end end
function c33710904.aclimit(e,re,tp) function c33710904.aclimit(e,re,tp)
local c=re:GetHandler() local c=re:GetHandler()
local tg=e:GetLabelObject() local code=e:GetLabel()
local flag=false return c:IsCode(code)
if not tg then return false end
local tc=tg:GetFirst()
while tc do
flag=c:IsCode(tc:GetCode())
tc=tg:GetNext()
end
return flag
end end
\ No newline at end of file
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