Commit d6f59e3d authored by salix5's avatar salix5

fix aux.ChangeCodeCondition()

The normal version should be applied when there is no disable effect.
parent 1266e341
......@@ -250,6 +250,7 @@ function Auxiliary.ChangeCodeCondition(check,condition)
return function(e)
if condition and not condition(e) then return false end
local le={e:GetHandler():IsHasEffect(EFFECT_DISABLE)}
if le[1]==nil then return check end
for _,te in ipairs(le) do
if not te:IsHasProperty(0,EFFECT_FLAG2_MILLENNIUM_RESTRICT) then return check 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