Skip to content

Commit 320e7c1

Browse files
authored
"Rebellion of the Monarchs" update
Prevent a script error on resolution if there's no card in the player's Deck that can be revealed and can also be added to the hand.
1 parent d350a88 commit 320e7c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pre-release/c101301062.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function s.rescon(sg,e,tp,mg)
4040
end
4141
function s.thtgop(e,tp,eg,ep,ev,re,r,rp)
4242
local g=Duel.GetMatchingGroup(s.revfilter,tp,LOCATION_DECK,0,nil)
43-
if #g>=3 then
43+
if #g>=3 and g:IsExists(Card.IsAbleToHand,1,nil) then
4444
local rg=aux.SelectUnselectGroup(g,e,tp,3,3,s.rescon,1,tp,HINTMSG_CONFIRM)
4545
Duel.ConfirmCards(1-tp,rg)
4646
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(id,2))
@@ -75,4 +75,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
7575
if #g>0 then
7676
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
7777
end
78-
end
78+
end

0 commit comments

Comments
 (0)