Skip to content

Commit 2d9697a

Browse files
committed
Fix forced material check in fusion procedure of "n+m+..." monsters
1 parent e1092e7 commit 2d9697a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

proc_fusion.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,9 @@ function Fusion.SelectMix(c,tp,mg,sg,mustg,fc,sub,sub2,contact,sumtype,chkf,...)
262262
res=mg2:IsExists(Fusion.SelectMix,1,sg,tp,mg2,sg,mustg-sg,fc,sub,sub2,contact,sumtype,chkf,...)
263263
else
264264
res=Fusion.CheckMixGoal(tp,sg,fc,sub,sub2,contact,sumtype,chkf,...)
265+
--This is the end of the recursion
266+
res=res and sg:Includes(mustg)
265267
end
266-
res = res and sg:Includes(mustg)
267268
sg:RemoveCard(c)
268269
-- mg2:Merge(rg)
269270
return res

0 commit comments

Comments
 (0)