Commit 5bde113b authored by mercury233's avatar mercury233

fix Auxiliary.EnableChangeCode

parent 0a512dc2
...@@ -259,6 +259,7 @@ function Auxiliary.EnableChangeCode(c,code,location,condition) ...@@ -259,6 +259,7 @@ function Auxiliary.EnableChangeCode(c,code,location,condition)
Auxiliary.AddCodeList(c,code) Auxiliary.AddCodeList(c,code)
local loc=c:GetOriginalType()&TYPE_MONSTER~=0 and LOCATION_MZONE or LOCATION_SZONE local loc=c:GetOriginalType()&TYPE_MONSTER~=0 and LOCATION_MZONE or LOCATION_SZONE
loc=location or loc loc=location or loc
if condition==nil then condition=Auxiliary.TRUE end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
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