Skip to content

Commit 8c22c61

Browse files
committed
Xyz proc: Fix forced material selection being skipped if cards with EFFECT_DOUBLE_XYZ_MATERIAL were selected
1 parent 09e8337 commit 8c22c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proc_xyz.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function Xyz.Target(f,lv,minc,maxc,mustbemat,exchk)
380380
if val>0 and (not tgf or tgf(te,c,matg)) then
381381
local newCount=matct+1+val
382382
te:UseCountLimit(tp)
383-
local chk=(minc<=newCount and newCount<=maxc)
383+
local chk=(minc<=newCount and newCount<=maxc and sg:Includes(mustg))
384384
or mg:IsExists(Xyz.RecursionChk,1,sg,mg,c,tp,min,max,minc,maxc,sg,matg,ct+1,newCount,mustbemat,exchk,f,mustg,lv,eqmg,equips_inverse)
385385
if chk then
386386
if not multi[1+val] then

0 commit comments

Comments
 (0)