I'm making skill that should do some damage and if targeted unit dies when i used spell on him i should get some hp but when i try this i only see special effect when unit dies but i don't get hp whats wrong?
-
Vampire Touch
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Vampire Touch (DreadLord)
-
Actions
- Set VampireTouchCU = (Casting unit)
- Set VampireTouchTU = (Target unit of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Vampire Touch (DreadLord) for VampireTouchCU) Equal to 1
-
Then - Actions
- Wait 0.50 seconds
- Unit - Cause VampireTouchCU to damage VampireTouchTU, dealing 5000.00 damage of attack type Chaos and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (VampireTouchTU is dead) Equal to True
-
Then - Actions
- Unit - Set life of VampireTouchCU to ((Life of VampireTouchCU) + ((Life of VampireTouchTU) x 0.20))
- Special Effect - Create a special effect attached to the head of VampireTouchCU using Objects\Spawnmodels\Human\HumanBlood\HumanBloodPriest.mdl
- Set VampireTouchSE = (Last created special effect)
- Wait 5.00 seconds
- Special Effect - Destroy VampireTouchSE
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
Events