Commit fedca703 authored by nanahira's avatar nanahira

detect inside

parent 2faf6b41
...@@ -36,9 +36,8 @@ function Auxiliary.PreloadUds() ...@@ -36,9 +36,8 @@ function Auxiliary.PreloadUds()
e2:SetTargetRange(0xff,0xff) e2:SetTargetRange(0xff,0xff)
e2:SetTarget(function(e,c) e2:SetTarget(function(e,c)
local code1,code2=c:GetOriginalCodeRule() local code1,code2=c:GetOriginalCodeRule()
local turnID=c:IsOnField() and c:GetTurnID() or 99
return _.any(_FORBID_LIST,function(m) return _.any(_FORBID_LIST,function(m)
return (code1==m.code or code2==m.code) and turnID>=m.turn return (code1==m.code or code2==m.code) and (not c:IsOnField() or c:GetTurnID()>=m.turn)
end) end)
end) end)
Duel.RegisterEffect(e2,p) Duel.RegisterEffect(e2,p)
......
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