Commit 4624a635 authored by xiaoye's avatar xiaoye

Update VgD.Lua

parent bc21859d
...@@ -76,9 +76,13 @@ function VgD.RideUpOperation(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,9 +76,13 @@ function VgD.RideUpOperation(e,tp,eg,ep,ev,re,r,rp)
local sg=rg1:FilterSelect(tp,Card.IsLocation,1,1,nil,LOCATION_HAND+LOCATION_RIDE) local sg=rg1:FilterSelect(tp,Card.IsLocation,1,1,nil,LOCATION_HAND+LOCATION_RIDE)
local sc=sg:GetFirst() local sc=sg:GetFirst()
if sc:IsLocation(LOCATION_EXTRA) then if sc:IsLocation(LOCATION_EXTRA) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) if Duel.IsPlayerAffectedByEffect(tp,AFFECT_CODE_OVERLAY_INSTEAD_WHEN_RIDE) and Duel.SelectYesNo(tp,VgF.Stringid(VgID,14)) then
local g=Duel.SelectMatchingCard(tp,VgD.DisCardRideUpFilter,tp,LOCATION_HAND,0,1,1,nil,e,lv,code,rc) VgF.DamageCost(1)(e,tp,eg,ep,ev,re,r,rp,1)
VgF.Sendto(LOCATION_DROP,g,REASON_COST+REASON_DISCARD) 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)
VgF.Sendto(LOCATION_DROP,g,REASON_COST+REASON_DISCARD)
end
end end
local mg=rc:GetOverlayGroup() local mg=rc:GetOverlayGroup()
if mg:GetCount()~=0 then if mg:GetCount()~=0 then
......
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