Commit b9127ebf authored by mercury233's avatar mercury233

fix union equip

copy effect of a union monster and equip with gain effect
parent 99d2a275
...@@ -258,6 +258,7 @@ end ...@@ -258,6 +258,7 @@ end
--set EFFECT_EQUIP_LIMIT after equipping --set EFFECT_EQUIP_LIMIT after equipping
function Auxiliary.SetUnionState(c) function Auxiliary.SetUnionState(c)
local eset={c:IsHasEffect(EFFECT_UNION_LIMIT)} local eset={c:IsHasEffect(EFFECT_UNION_LIMIT)}
if #eset==0 then return end
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE) e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_EQUIP_LIMIT) e0:SetCode(EFFECT_EQUIP_LIMIT)
......
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