Commit 1dbd863e authored by xiaoye's avatar xiaoye

Revert "fix GetLocCondition"

This reverts commit 6b499efd.
parent 89f66531
...@@ -150,12 +150,9 @@ end ...@@ -150,12 +150,9 @@ end
function VgF.GetLocCondition(loc, con) function VgF.GetLocCondition(loc, con)
local loc, loc_con = VgF.FixVRLoc(loc) local loc, loc_con = VgF.FixVRLoc(loc)
local condition = function(e, tp, eg, ep, ev, re, r, rp) local condition = function(e, tp, eg, ep, ev, re, r, rp)
local c = e return (not con or con(e, tp, eg, ep, ev, re, r, rp)) and loc_con(e:GetHandler())
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)
end end
return loc or LOCATION_MZONE, condition return loc or LOCATION_CIRCLE, condition
end end
---检查并转换typ 以及 code 用于【自】能力函数 ---检查并转换typ 以及 code 用于【自】能力函数
......
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