You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -29,6 +33,12 @@ function Xyz.AddProcedure(c,f,lv,ct,alterf,desc,maxct,op,mustbemat,exchk)
29
33
--exchk for special xyz, checking other materials
30
34
--mustbemat for Startime Magician
31
35
ifnotmaxctthenmaxct=ctend
36
+
-- TODO: Update when we make using '99' deprecated
37
+
--[[if maxct==99 then
38
+
maxct=Xyz.InfiniteMats
39
+
Debug.PrintStacktrace()
40
+
Debug.Message("Using 99 to represent any number of Xyz materials is deprecated, use the value Xyz.InfiniteMats instead")
41
+
end--]]
32
42
ifc.xyz_filter==nilthen
33
43
localmt=c:GetMetatable()
34
44
mt.xyz_filter=function(mc,ignoretoken,xyz,tp) returnmcand (notforf(mc,xyz,SUMMON_TYPE_XYZ|MATERIAL_XYZ,tp)) and (notlvormc:IsXyzLevel(c,lv)) and (notmc:IsType(TYPE_TOKEN) orignoretoken) end
@@ -155,7 +165,7 @@ function Xyz.RecursionChk(c,mg,xyz,tp,min,max,minc,maxc,sg,matg,ct,matct,mustbem
155
165
end
156
166
end
157
167
end
158
-
if (maxandxct>max) or (xmatctandxmatct>maxc) thenmg:Merge(rg) returnfalseend
168
+
if (maxandxct>max) or (maxc~=infTokenandxmatct>maxc) thenmg:Merge(rg) returnfalseend
159
169
ifaddToMatgthen
160
170
matg:AddCard(c)
161
171
end
@@ -338,7 +348,7 @@ function Xyz.Target(f,lv,minc,maxc,mustbemat,exchk)
338
348
whiletruedo
339
349
localct=#matg
340
350
localmatct=ct+extra_mats
341
-
ifnot ((notmaxor#matg<max) and (notmaxcormatct<maxc)) thenbreakend
351
+
ifnot ((notmaxor#matg<max) and (maxc==infTokenormatct<maxc)) thenbreakend
0 commit comments