Commit 804dce8e authored by nanahira's avatar nanahira

create a forbidden effect every time

parent 4aa2f7a1
...@@ -29,10 +29,13 @@ function Auxiliary.PreloadUds() ...@@ -29,10 +29,13 @@ function Auxiliary.PreloadUds()
_FORBID_INITIALIZED={} _FORBID_INITIALIZED={}
for p=0,1 do for p=0,1 do
_FORBID_INITIALIZED[p]=Duel.CreateToken(p,10000000) _FORBID_INITIALIZED[p]=Duel.CreateToken(p,10000000)
end
end
for p=0,1 do
local tempc=_FORBID_INITIALIZED[p] local tempc=_FORBID_INITIALIZED[p]
local e2=Effect.CreateEffect(tempc) local e2=Effect.CreateEffect(tempc)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_IMMUNE) e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_IGNORE_RANGE)
e2:SetCode(EFFECT_FORBIDDEN) e2:SetCode(EFFECT_FORBIDDEN)
e2:SetTargetRange(0xff,0xff) e2:SetTargetRange(0xff,0xff)
e2:SetTarget(function(e,c) e2:SetTarget(function(e,c)
...@@ -42,9 +45,6 @@ function Auxiliary.PreloadUds() ...@@ -42,9 +45,6 @@ function Auxiliary.PreloadUds()
end) end)
end) end)
Duel.RegisterEffect(e2,p) Duel.RegisterEffect(e2,p)
end
end
for p=0,1 do
Duel.AdjustInstantly(_FORBID_INITIALIZED[p]) Duel.AdjustInstantly(_FORBID_INITIALIZED[p])
end end
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