Commit 9ca0541b authored by sidschingis's avatar sidschingis

fix

fixed being able to discard itself
parent 513b52e4
...@@ -23,8 +23,8 @@ function c59808784.initial_effect(c) ...@@ -23,8 +23,8 @@ function c59808784.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c59808784.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c59808784.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end 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) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD,e:GetHandler())
end end
function c59808784.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c59808784.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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