Commit b7248f6e authored by mercury233's avatar mercury233

fix trap activate from hand discard self

parent ca85be1e
...@@ -25,7 +25,7 @@ function c32104431.costfilter(c) ...@@ -25,7 +25,7 @@ function c32104431.costfilter(c)
return c:IsSetCard(0xd6) and c:IsDiscardable() return c:IsSetCard(0xd6) and c:IsDiscardable()
end end
function c32104431.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c32104431.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c32104431.costfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c32104431.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,c32104431.costfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,c32104431.costfilter,1,1,REASON_COST+REASON_DISCARD)
end end
function c32104431.spfilter(c,e,tp) function c32104431.spfilter(c,e,tp)
......
...@@ -26,7 +26,7 @@ function c54199839.cfilter(c) ...@@ -26,7 +26,7 @@ function c54199839.cfilter(c)
return c:IsSetCard(0x105) and c:IsDiscardable() return c:IsSetCard(0x105) and c:IsDiscardable()
end end
function c54199839.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c54199839.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c54199839.cfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c54199839.cfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,c54199839.cfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,c54199839.cfilter,1,1,REASON_COST+REASON_DISCARD)
end end
function c54199839.target(e,tp,eg,ep,ev,re,r,rp,chk) function c54199839.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
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