Skip to content

Commit 42fd49b

Browse files
authored
"Juraishin, the Cursed Thunder God" update
Fixed a bug where it would cause an script error when it activated its effect to destroy Spell/Traps but the only valid cards were equipped to itself
1 parent 71f0edb commit 42fd49b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

official/c78693036.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp)
4545
end
4646
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
4747
local g1=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
48-
local g2=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSpellTrap),tp,0,LOCATION_ONFIELD,nil)
48+
local g2=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSpellTrap),tp,0,LOCATION_ONFIELD,e:GetHandler():GetEquipGroup())
4949
local b1=#g1>0
5050
local b2=#g2>0
5151
if chk==0 then return b1 or b2 end
@@ -71,4 +71,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
7171
Duel.Destroy(g,REASON_EFFECT)
7272
end
7373
end
74-
end
74+
end

0 commit comments

Comments
 (0)