Skip to content

Commit 8f50346

Browse files
committed
Minor optimization in proc xyz
Terminate early the condition check if the minimum number of materials required is more than the max materials required for the summon
1 parent 8cf5cf2 commit 8f50346

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proc_xyz.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ function Xyz.Condition(f,lv,minc,maxc,mustbemat,exchk)
253253
--og: use specific material
254254
return function(e,c,must,og,min,max)
255255
if c==nil then return true end
256+
if (maxc~=infToken and min and min>maxc) then return false end
256257
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
257258
local tp=c:GetControler()
258259
local mg

0 commit comments

Comments
 (0)