Commit c13b22c4 authored by mercury233's avatar mercury233

fix

parent b4a1757e
...@@ -19,6 +19,7 @@ function c739444.initial_effect(c) ...@@ -19,6 +19,7 @@ function c739444.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DISABLE_FIELD) e2:SetCode(EFFECT_DISABLE_FIELD)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_REPEAT)
e2:SetCondition(c739444.discon) e2:SetCondition(c739444.discon)
e2:SetOperation(c739444.disop) e2:SetOperation(c739444.disop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -43,6 +44,6 @@ end ...@@ -43,6 +44,6 @@ end
function c739444.disop(e,tp) function c739444.disop(e,tp)
local c=e:GetHandler() local c=e:GetHandler()
local flag1=bit.band(c:GetLinkedZone(tp),0xffffff00) local flag1=bit.band(c:GetLinkedZone(tp),0xffffff00)
local flag2=bit.band(c:GetLinkedZone(1-tp),0xff00ffff) local flag2=bit.band(c:GetLinkedZone(tp),0xff00ffff)
return flag1+flag2 return flag1+flag2
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