Commit 4c82c179 authored by sidschingis's avatar sidschingis

fix

parent 6b4d636f
......@@ -9,6 +9,7 @@ function c54366836.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetCondition(c54366836.con)
e1:SetValue(1)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
......@@ -30,6 +31,9 @@ function c54366836.initial_effect(c)
e3:SetOperation(c54366836.damop2)
c:RegisterEffect(e3)
end
function c54366836.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsAttackPos()
end
function c54366836.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return ep==tp and c:IsRelateToBattle()
......
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