Commit d662c601 authored by Tachibana's avatar Tachibana

ndyd

parent 31796ebe
Pipeline #4453 passed with stages
in 22 minutes and 30 seconds
......@@ -119,15 +119,17 @@ function c21520221.igop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmDecktop(tp,dcount-seq)
local dg=Duel.GetDecktopGroup(tp,dcount-seq)
local tdg=dg:Filter(Card.IsSetCard,nil,0x491)
dg:Sub(tdg)
if tdg and tdg:GetCount()~=0 then dg:Sub(tdg) end
if dg:GetCount()>0 and not Duel.IsExistingMatchingCard(c21520221.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then
Duel.SetLP(tp,Duel.GetLP(tp)-dg:GetCount()*600)
end
if spcard:IsAbleToHand() then
Duel.DisableShuffleCheck()
Duel.SendtoHand(spcard,nil,REASON_EFFECT)
Duel.DiscardDeck(tp,dcount-seq-1,REASON_EFFECT+REASON_REVEAL)
-- Duel.DiscardDeck(tp,dcount-seq-1,REASON_EFFECT+REASON_REVEAL)
Duel.Remove(dg,POS_FACEDOWN,REASON_EFFECT+REASON_REVEAL)
Duel.ConfirmCards(1-tp,spcard)
Duel.ShuffleHand(tp)
else Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT+REASON_REVEAL) end
-- else Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT+REASON_REVEAL) end
else Duel.Remove(dg,POS_FACEDOWN,REASON_EFFECT+REASON_REVEAL) end
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