Commit d471e9b0 authored by salix5's avatar salix5

minor fix

parent b4713a16
......@@ -6,6 +6,7 @@ function c44364207.initial_effect(c)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetCondition(c44364207.indescon)
e1:SetTarget(c44364207.indestg)
e1:SetValue(c44364207.indesval)
c:RegisterEffect(e1)
......@@ -20,8 +21,11 @@ function c44364207.initial_effect(c)
e2:SetOperation(c44364207.operation)
c:RegisterEffect(e2)
end
function c44364207.indescon(e)
return e:GetHandler():IsAttackPos()
end
function c44364207.indestg(e,c)
return c:IsRace(RACE_MACHINE) and c:IsAttackBelow(1200) and e:GetHandler():IsAttackPos()
return c:IsRace(RACE_MACHINE) and c:IsAttackBelow(1200)
end
function c44364207.indesval(e,re)
return re:GetHandler():IsType(TYPE_TRAP)
......
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