Commit bfb1c8bd authored by nekrozar's avatar nekrozar Committed by mercury233

update LCheckOtherMaterial (#1065)

parent c22519ec
...@@ -1835,10 +1835,13 @@ function Auxiliary.GetLinkCount(c) ...@@ -1835,10 +1835,13 @@ function Auxiliary.GetLinkCount(c)
else return 1 end else return 1 end
end end
function Auxiliary.LCheckOtherMaterial(c,mg,lc) function Auxiliary.LCheckOtherMaterial(c,mg,lc)
local le=c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL) local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL)}
if not le then return true end if not le then return true end
local f=le:GetValue() for _,te in pairs(le) do
return f(nil,lc,mg) local f=te:GetValue()
if f(nil,lc,mg) then return true end
end
return false
end end
function Auxiliary.LCheckMaterialCompatibility(sg,lc) function Auxiliary.LCheckMaterialCompatibility(sg,lc)
for tc in Auxiliary.Next(sg) do for tc in Auxiliary.Next(sg) do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment