Code:
Death Aura
Events
Time - Every 3.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to (Number of units in (Units in (Playable map area) matching (((Matching unit) has buff Death Aura ) Equal to True))), do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Death Aura ) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Life of (Picked unit)))) Less than (DeathAuraLife[(Integer A)] - 300)
Then - Actions
Unit - Create 1 Dummy for Player 7 (Green) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Add Ministun to (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DeathAuraLvl Equal to 1
Then - Actions
Unit - Set level of Ministun for (Last created unit) to 3
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DeathAuraLvl Equal to 2
Then - Actions
Unit - Set level of Ministun for (Last created unit) to 5
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DeathAuraLvl Equal to 3
Then - Actions
Unit - Set level of Ministun for (Last created unit) to 7
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DeathAuraLvl Equal to 4
Then - Actions
Unit - Set level of Ministun for (Last created unit) to 9
Else - Actions
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
Unit - Remove (Last created unit) from the game
Else - Actions
Set DeathAuraLife[(Integer A)] = (Integer((Life of (Picked unit))))
In game it simply does not work. :S
also: in object editor the field (stats - targets allowed) confuses the hell out of me. I have a custom spell based off of life drain and the targets allowed are: Air, Ground, Organic (which, i might add, is the same as normal life drain) but when i try to cast it in game it says
"Must target a hero" or "must target an enemy" or "must target an ally" or "cant target self" I cant seem to cast it on anything :S
also also: when i learn Death Aura the game lags, is there any way to prevent that?