Why is this trigger not functioning?
The idea is to make an aura that heals for a % of enemies max health when they die.
The idea is to make an aura that heals for a % of enemies max health when they die.
-
Bloodlust Work
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Vampire
- (Level of Bloodlust for (Triggering unit)) Greater than 0
-
Actions
- Set VariableSet Bloodlust_Targets = (Picked unit)
- Set VariableSet Bloodlust_Caster = (Triggering unit)
- Set VariableSet Bloodlust_Area = (Position of Bloodlust_Caster)
- Set VariableSet Bloodlust_Group = (Units within 1000.00 of Bloodlust_Area.)
- Set VariableSet Bloodlust_Heal = ((Max life of Bloodlust_Targets) x Bloodlust_HealPercentage[(Level of Bloodlust for Bloodlust_Caster)])
-
Unit Group - Pick every unit in Bloodlust_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Bloodlust_Targets belongs to an enemy of (Owner of Bloodlust_Caster).) Equal to True
-
Then - Actions
- Unit - Set life of Bloodlust_Caster to ((Life of (Triggering unit)) + Bloodlust_Heal)%
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation (udg_Bloodlust_Area)
- Custom script: call DestroyGroup (udg_Bloodlust_Group)
-
Events