Commit 66220be0 authored by nanahira's avatar nanahira Committed by GitHub

Add material card as a param for the value of EFFECT_EXTRA_LINK_MATERIAL

~~I won't say this change is for a custom card scripting~~
parent 90cf9a6a
......@@ -1898,7 +1898,7 @@ function Auxiliary.LCheckOtherMaterial(c,mg,lc,tp)
local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL,tp)}
for _,te in pairs(le) do
local f=te:GetValue()
if f and not f(te,lc,mg) then return false end
if f and not f(te,lc,mg,c) then return false end
end
return true
end
......@@ -1918,7 +1918,7 @@ function Auxiliary.LExtraMaterialCount(mg,lc,tp)
for _,te in pairs(le) do
local sg=mg:Filter(aux.TRUE,tc)
local f=te:GetValue()
if not f or f(te,lc,sg) then
if not f or f(te,lc,sg,tc) then
te:UseCountLimit(tp)
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