Skip to content

Commit a95bf0d

Browse files
committed
"Lightstorm Dragon" fix
Fixed a bug where it would not reset one of its effects properly
1 parent fcf33d9 commit a95bf0d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

official/c10515412.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,14 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
7474
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return re:GetHandler()==tc end)
7575
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) if e1 then e1:Reset() end e:Reset() end)
7676
Duel.RegisterEffect(e2,tp)
77+
--Reset e2 if the card leaves the field without being activated
78+
local e3=Effect.CreateEffect(e:GetHandler())
79+
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
80+
e3:SetCode(EVENT_LEAVE_FIELD_P)
81+
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
82+
e3:SetReset(RESET_EVENT|RESETS_STANDARD)
83+
e3:SetOperation(function(e) if e:GetLabelObject() then e:GetLabelObject():Reset() end end)
84+
e3:SetLabelObject(e2)
85+
tc:RegisterEffect(e3)
7786
end
7887
end

0 commit comments

Comments
 (0)