Commit ce5f1ee0 authored by salix5's avatar salix5 Committed by VanillaSalt

fix

24731453 除雪機関車ハッスル・ラッセル
Now the destroy effect will apply only if the sp_summon is succeed.
If no cards are destroyed, the effect will end at sp_summon success.
parent bc6c72bc
...@@ -44,10 +44,9 @@ end ...@@ -44,10 +44,9 @@ end
function c24731453.spop(e,tp,eg,ep,ev,re,r,rp) function c24731453.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then local g=Duel.GetMatchingGroup(c24731453.filter,tp,LOCATION_SZONE,0,nil)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 and g:GetCount()>0 then
Duel.BreakEffect() Duel.BreakEffect()
local g=Duel.GetMatchingGroup(c24731453.filter,tp,LOCATION_SZONE,0,nil)
local ct=Duel.Destroy(g,REASON_EFFECT) local ct=Duel.Destroy(g,REASON_EFFECT)
Duel.Damage(1-tp,ct*200,REASON_EFFECT) Duel.Damage(1-tp,ct*200,REASON_EFFECT)
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