Skip to content

Commit 0e19301

Browse files
authored
update Duel.SwapSequence function
added a return to value to indicate if the swap succeeded
1 parent 6f5d6d8 commit 0e19301

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

proc_workaround.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,3 +610,13 @@ function Duel.SelectReleaseGroupCost(tp,f,minc,maxc,use_hand,check,ex,...)
610610
end
611611
return sg
612612
end
613+
614+
do
615+
local oldf=Duel.SwapSequence
616+
function Duel.SwapSequence(c1,c2)
617+
local seq1=c1:GetSequence()
618+
local seq2=c2:GetSequence()
619+
oldf(c1,c2)
620+
return c1:IsOnField() and c2:IsOnField() and c1:IsSequence(seq2) and c2:IsSequence(seq1)
621+
end
622+
end

0 commit comments

Comments
 (0)