Skip to content

Commit 56ba92a

Browse files
committed
"Lightstorm Dragon" fix
- Fixed a bug where the player would not be able to activate the effects of the card set by "Lightstorm Dragon" if they did no have a normal monster after the initial activation
1 parent 8fcb817 commit 56ba92a

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
@@ -65,5 +65,14 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
6565
e1:SetCondition(function() return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsType,TYPE_NORMAL),tp,LOCATION_MZONE,0,1,nil) end)
6666
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
6767
tc:RegisterEffect(e1)
68+
--Reset e1 when the card is activated (to allow effects of Continuous Spell/Traps to be used when they are face-up)
69+
local e2=Effect.CreateEffect(e:GetHandler())
70+
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
71+
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
72+
e2:SetCode(EVENT_CHAINING)
73+
e2:SetCountLimit(1)
74+
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return re:GetHandler()==tc end)
75+
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e1:Reset() e:Reset() end)
76+
Duel.RegisterEffect(e2,tp)
6877
end
6978
end

0 commit comments

Comments
 (0)