Commit fc3dc0ec authored by nanahira's avatar nanahira

fix set

parent 72b607ff
...@@ -25,9 +25,10 @@ function Auxiliary.PreloadUds() ...@@ -25,9 +25,10 @@ function Auxiliary.PreloadUds()
code=ac, code=ac,
turn=Duel.GetTurnCount() turn=Duel.GetTurnCount()
}) })
end) if not _FORBID_INITIALIZED then
Duel.RegisterEffect(e1,0) _FORBID_INITIALIZED=true
local e2=Effect.GlobalEffect() local tempc=Duel.CreateToken(0,10000000)
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+EFFECT_FLAG_IGNORE_RANGE) e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_IGNORE_RANGE)
e2:SetCode(EFFECT_FORBIDDEN) e2:SetCode(EFFECT_FORBIDDEN)
...@@ -40,7 +41,7 @@ function Auxiliary.PreloadUds() ...@@ -40,7 +41,7 @@ function Auxiliary.PreloadUds()
end) end)
end) end)
Duel.RegisterEffect(e2,0) Duel.RegisterEffect(e2,0)
local e3=e2:Clone() end
e3:SetTargetRange(LOCATION_HAND,LOCATION_HAND) end)
Duel.RegisterEffect(e3,0) Duel.RegisterEffect(e1,0)
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