Commit d04cb2a6 authored by xiaoye's avatar xiaoye

Update vgd.lua

parent 1fa1fdbf
......@@ -246,7 +246,7 @@ function VgD.RideUpOperation(e, tp, eg, ep, ev, re, r, rp)
local sc = sg:GetFirst()
if sc:IsLocation(LOCATION_EXTRA) then
if Duel.IsPlayerAffectedByEffect(tp, AFFECT_CODE_OVERLAY_INSTEAD_WHEN_RIDE) and Duel.SelectYesNo(tp, VgF.Stringid(VgID, 14)) then
VgF.DamageCost(1)(e, tp, eg, ep, ev, re, r, rp, 1)
VgF.OverlayCost(1)(e, tp, eg, ep, ev, re, r, rp, 1)
else
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DISCARD)
local g = Duel.SelectMatchingCard(tp, VgD.DisCardRideUpFilter, tp, LOCATION_HAND, 0, 1, 1, nil, e, lv, code, rc)
......
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