Skip to content

Commit 9d696fb

Browse files
authored
"Magnifistorming Summoning Technique" update
Prevent script errors when the destruction doesn't happen due to an event
1 parent 5cd9ca9 commit 9d696fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pre-release/c101302062.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function s.initial_effect(c)
1919
e2:SetProperty(EFFECT_FLAG_DELAY)
2020
e2:SetCode(EVENT_DESTROYED)
2121
e2:SetCountLimit(1,{id,1})
22-
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return re:GetHandler():IsCode(CARD_MYSTICAL_SPACE_TYPHOON) end)
22+
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return re and re:GetHandler():IsCode(CARD_MYSTICAL_SPACE_TYPHOON) end)
2323
e2:SetTarget(s.settg)
2424
e2:SetOperation(s.setop)
2525
c:RegisterEffect(e2)
@@ -81,4 +81,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
8181
if c:IsRelateToEffect(e) then
8282
Duel.SSet(tp,c)
8383
end
84-
end
84+
end

0 commit comments

Comments
 (0)