Commit 1d7c523a authored by Tachibana's avatar Tachibana

ybb

parent af2e737f
...@@ -44,6 +44,7 @@ function cm.ovtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,6 +44,7 @@ function cm.ovtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.ovop(e,tp,eg,ep,ev,re,r,rp) function cm.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(cm.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(cm.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil)
local sg=nil local sg=nil
local hg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_HAND,nil) local hg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_HAND,nil)
...@@ -84,11 +85,13 @@ function cm.ovop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,11 +85,13 @@ function cm.ovop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(sg) Duel.HintSelection(sg)
end end
local tc=sg:GetFirst() local tc=sg:GetFirst()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup() local og=tc:GetOverlayGroup()
if og:GetCount()>0 then if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE) Duel.SendtoGrave(og,REASON_RULE)
end end
Duel.Overlay(c,tc) Duel.Overlay(c,tc)
end
end end
function cm.tdcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
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