Commit d70d6331 authored by mercury233's avatar mercury233

fix

parent 6cce3a94
...@@ -43,7 +43,7 @@ function c70298454.initial_effect(c) ...@@ -43,7 +43,7 @@ function c70298454.initial_effect(c)
e6:SetType(EFFECT_TYPE_SINGLE) e6:SetType(EFFECT_TYPE_SINGLE)
e6:SetCode(EFFECT_EQUIP_LIMIT) e6:SetCode(EFFECT_EQUIP_LIMIT)
e6:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e6:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e6:SetValue(c70298454.eqlimit) e6:SetValue(1)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c70298454.filter(c) function c70298454.filter(c)
...@@ -89,6 +89,3 @@ end ...@@ -89,6 +89,3 @@ end
function c70298454.repval(e,re,r,rp) function c70298454.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
end end
function c70298454.eqlimit(e,c)
return e:GetHandler():GetEquipTarget()==c
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