Commit 072ebc69 authored by mercury233's avatar mercury233

fix

parent 40b8dbb4
...@@ -8,7 +8,6 @@ function c24731391.initial_effect(c) ...@@ -8,7 +8,6 @@ function c24731391.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetLabel(tp)
e1:SetValue(c24731391.val) e1:SetValue(c24731391.val)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--target --target
...@@ -49,12 +48,7 @@ function c24731391.initial_effect(c) ...@@ -49,12 +48,7 @@ function c24731391.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c24731391.val(e,re,dam,r,rp,rc) function c24731391.val(e,re,dam,r,rp,rc)
if bit.band(r,REASON_BATTLE)>0 then return dam end return dam/2
if bit.band(r,REASON_EFFECT)~=0 or bit.band(r,REASON_BATTLE)~=0 then
return dam/2
else
return dam
end
end end
function c24731391.filter(c) function c24731391.filter(c)
return c:IsType(TYPE_LINK) return c:IsType(TYPE_LINK)
......
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