Commit 1dbd863e authored by xiaoye's avatar xiaoye

Revert "fix GetLocCondition"

This reverts commit 6b499efd.
parent 89f66531
......@@ -150,12 +150,9 @@ end
function VgF.GetLocCondition(loc, con)
local loc, loc_con = VgF.FixVRLoc(loc)
local condition = function(e, tp, eg, ep, ev, re, r, rp)
local c = e
if VgF.GetValueType(e) == "Effect" then c = e:GetHandler() end
if VgF.GetValueType(c) ~= "Card" or not loc_con(c) then return false end
return not con or con(e, tp, eg, ep, ev, re, r, rp)
return (not con or con(e, tp, eg, ep, ev, re, r, rp)) and loc_con(e:GetHandler())
end
return loc or LOCATION_MZONE, condition
return loc or LOCATION_CIRCLE, condition
end
---检查并转换typ 以及 code 用于【自】能力函数
......@@ -1635,4 +1632,4 @@ function VgF.ToTrigger(g)
if Duel.MoveToField(tc, tp, tp, loc, POS_FACEUP, true) then ct = ct + 1 end
end
return ct
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