Commit b80fc619 authored by TanakaKotoha's avatar TanakaKotoha

fix 8

parent 93d5a008
......@@ -13,12 +13,9 @@ function cm.initial_effect(c)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
function cm.diu(c,e,tp)
return c:IsDiscardable()
end
function cm.diuka(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 and Duel.IsExistingMatchingCard(cm.diu,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,cm.diu,1,1,REASON_COST+REASON_DISCARD)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
sc1=Duel.GetOperatedGroup()
tc1=sc1:GetFirst()
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