Skip to content

Commit 5bb6d58

Browse files
committed
"Regenesis Dragon Vayikra" update
Fixed a bug where it would be possible to activate its effect when the only Spell/Traps that could be banished were cards equipped to it
1 parent f2d4ac8 commit 5bb6d58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

official/c59323650.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ function s.spcon(e,c)
4949
and Duel.IsExistingMatchingCard(s.spconfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
5050
end
5151
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
52+
local exg=e:GetHandler():GetEquipGroup()
5253
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsSpellTrap() and chkc:IsAbleToRemove() end
53-
if chk==0 then return Duel.IsExistingTarget(aux.AND(Card.IsSpellTrap,Card.IsAbleToRemove),tp,0,LOCATION_ONFIELD,1,nil) end
54+
if chk==0 then return Duel.IsExistingTarget(aux.AND(Card.IsSpellTrap,Card.IsAbleToRemove),tp,0,LOCATION_ONFIELD,1,exg) end
5455
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
55-
local g=Duel.SelectTarget(tp,aux.AND(Card.IsSpellTrap,Card.IsAbleToRemove),tp,0,LOCATION_ONFIELD,1,1,nil)
56+
local g=Duel.SelectTarget(tp,aux.AND(Card.IsSpellTrap,Card.IsAbleToRemove),tp,0,LOCATION_ONFIELD,1,1,exg)
5657
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,tp,0)
5758
end
5859
function s.rmop(e,tp,eg,ep,ev,re,r,rp)

0 commit comments

Comments
 (0)