Skip to content

Commit 2bc1677

Browse files
committed
"Beetrooper Sting Lancer" fix
Fixed a bug where it would be possible for the player to target only their own monsters with the first effect
1 parent aed39af commit 2bc1677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

official/c65430555.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function s.tdfilter(c,e)
3939
return c:IsMonster() and c:IsAbleToDeck() and c:IsCanBeEffectTarget(e)
4040
end
4141
function s.rescon(sg,e,tp,mg)
42-
return sg:IsExists(s.insectfilter,1,nil,tp)
42+
return sg:IsExists(s.insectfilter,1,nil,tp) and sg:IsExists(Card.IsControler,1,nil,1-tp)
4343
end
4444
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
4545
local c=e:GetHandler()
@@ -49,7 +49,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
4949
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
5050
and #g>=2 and g:IsExists(Card.IsControler,1,nil,1-tp)
5151
and g:IsExists(s.insectfilter,1,nil,tp) end
52-
local sg=aux.SelectUnselectGroup(g,e,tp,2,2,s.rescon,1,tp,HINTMSG_TODECK)
52+
local sg=aux.SelectUnselectGroup(g,e,tp,2,2,s.rescon,1,tp,HINTMSG_TODECK,s.rescon)
5353
Duel.SetTargetCard(sg)
5454
Duel.SetOperationInfo(0,CATEGORY_TODECK,sg,#sg,PLAYER_ALL,0)
5555
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0)

0 commit comments

Comments
 (0)