im trying to make a spell which would kill the unit when it has 20% hp or less but its not killing the unit...what should i do? check this
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Execute
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Percentage life of (Target unit of ability being cast)) Less than 20.00
Then - Actions
Player - Add ((Hero level of (Target unit of ability being cast)) x 10) to (Owner of (Casting unit)) Current gold
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 999999.00 damage of attack type Spells and damage type Normal
Else - Actions
Animation - Play (Casting unit)'s Attack slam animation
Do nothing
(PS: casting unit must have the gold reward)
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Execute
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Percentage life of (Target unit of ability being cast)) Less than 20.00
Then - Actions
Player - Add ((Hero level of (Target unit of ability being cast)) x 10) to (Owner of (Casting unit)) Current gold
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 999999.00 damage of attack type Spells and damage type Normal
Else - Actions
Animation - Play (Casting unit)'s Attack slam animation
Do nothing
(PS: casting unit must have the gold reward)
Last edited: