Commit f3a7ccb1 authored by xiaoye's avatar xiaoye

Update vgd.lua

parent 22f98cb0
......@@ -1484,11 +1484,9 @@ function VgD.BeRidedByCardCondition(con, filter)
local c, rc = e:GetHandler(), e:GetHandler():GetReasonCard()
filter = filter or vgf.True
if type(filter) == "number" then
filter = function(c, rc)
return rc:IsCode(filter)
end
end
return filter(c:GetReasonCard(), c)
return filter(rc, c)
end
end
function VgD.BeRidedByCardOperation(desc, op, cost, tg)
......
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