Commit a78c3889 authored by xiaoye's avatar xiaoye

Update vgd.lua

parent 86ad10a9
...@@ -1496,19 +1496,20 @@ function VgD.BeRidedByCardOperation(desc, op, cost, tg) ...@@ -1496,19 +1496,20 @@ function VgD.BeRidedByCardOperation(desc, op, cost, tg)
local c = e:GetHandler() local c = e:GetHandler()
local rc = c:GetReasonCard() local rc = c:GetReasonCard()
local typ = cost and EFFECT_TYPE_TRIGGER_O or EFFECT_TYPE_TRIGGER_F local typ = cost and EFFECT_TYPE_TRIGGER_O or EFFECT_TYPE_TRIGGER_F
local e = Effect.CreateEffect(rc) local e1 = Effect.CreateEffect(rc)
e:SetDescription(desc) e1:SetDescription(desc)
e:SetType(typ + EFFECT_TYPE_FIELD) e1:SetType(typ + EFFECT_TYPE_FIELD)
e:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_IGNORE_IMMUNE)
e:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e:SetLabelObject(c) e1:SetCountLimit(1)
e:SetRange(LOCATION_MZONE) e1:SetLabelObject(c)
e:SetCondition(VgD.BeRidedByCardOpCondtion) e1:SetRange(LOCATION_MZONE)
if cost then e:SetCost(cost) end e1:SetCondition(VgD.BeRidedByCardOpCondtion)
if tg then e:SetTarget(tg) end if cost then e1:SetCost(cost) end
if op then e:SetOperation(op) end if tg then e1:SetTarget(tg) end
e:SetReset(RESET_EVENT + RESETS_STANDARD) if op then e1:SetOperation(op) end
rc:RegisterEffect(e) e1:SetReset(RESET_EVENT + RESETS_STANDARD)
rc:RegisterEffect(e1)
end end
end end
function VgD.BeRidedByCardOpCondtion(e, tp, eg, ep, ev, re, r, rp) function VgD.BeRidedByCardOpCondtion(e, tp, eg, ep, ev, re, r, rp)
......
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