Skip to content

Commit 55747ca

Browse files
committed
"Divine Serpent Apophis" fix
Fixed a bug where the player would be unable to finish setting cards if they did not have enough zones available during the resolution
1 parent 3443505 commit 55747ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pre-release/c100410004.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ end
8484
function s.setop(e,tp,eg,ep,ev,re,r,rp)
8585
local g=Duel.GetTargetCards(e)
8686
if #g>0 then
87+
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
88+
if #g>ft then
89+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
90+
g=g:Select(tp,ft,ft)
91+
end
8792
Duel.SSet(tp,g)
8893
end
8994
end

0 commit comments

Comments
 (0)