Commit 11b58fa8 authored by DailyShana's avatar DailyShana

Revert "Add material card as a param for the value of EFFECT_EXTRA_LINK_MATERIAL"

This reverts commit 66220be0.
parent 18629eab
...@@ -1867,7 +1867,7 @@ function Auxiliary.LCheckOtherMaterial(c,mg,lc,tp) ...@@ -1867,7 +1867,7 @@ function Auxiliary.LCheckOtherMaterial(c,mg,lc,tp)
local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL,tp)} local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL,tp)}
for _,te in pairs(le) do for _,te in pairs(le) do
local f=te:GetValue() local f=te:GetValue()
if f and not f(te,lc,mg,c) then return false end if f and not f(te,lc,mg) then return false end
end end
return true return true
end end
...@@ -1887,7 +1887,7 @@ function Auxiliary.LExtraMaterialCount(mg,lc,tp) ...@@ -1887,7 +1887,7 @@ function Auxiliary.LExtraMaterialCount(mg,lc,tp)
for _,te in pairs(le) do for _,te in pairs(le) do
local sg=mg:Filter(aux.TRUE,tc) local sg=mg:Filter(aux.TRUE,tc)
local f=te:GetValue() local f=te:GetValue()
if not f or f(te,lc,sg,tc) then if not f or f(te,lc,sg) then
te:UseCountLimit(tp) te:UseCountLimit(tp)
end end
end end
......
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