Commit 2faf6b41 authored by nanahira's avatar nanahira

fix

parent fc3dc0ec
...@@ -27,7 +27,8 @@ function Auxiliary.PreloadUds() ...@@ -27,7 +27,8 @@ function Auxiliary.PreloadUds()
}) })
if not _FORBID_INITIALIZED then if not _FORBID_INITIALIZED then
_FORBID_INITIALIZED=true _FORBID_INITIALIZED=true
local tempc=Duel.CreateToken(0,10000000) for p=0,1 do
local tempc=Duel.CreateToken(p,10000000)
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+EFFECT_FLAG_IGNORE_RANGE) e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_IGNORE_RANGE)
...@@ -40,7 +41,8 @@ function Auxiliary.PreloadUds() ...@@ -40,7 +41,8 @@ function Auxiliary.PreloadUds()
return (code1==m.code or code2==m.code) and turnID>=m.turn return (code1==m.code or code2==m.code) and turnID>=m.turn
end) end)
end) end)
Duel.RegisterEffect(e2,0) Duel.RegisterEffect(e2,p)
end
end end
end) end)
Duel.RegisterEffect(e1,0) Duel.RegisterEffect(e1,0)
......
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