- Joined
- May 28, 2011
- Messages
- 101
I want to make it so whenever the player kills a unit, all nearby player units will get mana. For now i can make it so if the player or its allies kills any unit, it will give mana to all nearby units. Here is my problem: I want it to only give mana, if the killed unit is an enemy of the player. He may not get mana by killing his allies or his own units. Here is my try:
-
Mana Consumption
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Kael_Thas Equal to 1
-
-
Actions
-
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to (Picked player)
-
-
Then - Actions
-
Unit - Move Mana Caster 0287 <gen> instantly to (Position of (Dying unit))
-
Unit - Order Mana Caster 0287 <gen> to Undead Obsidian Statue - Spirit Touch.
-
-
Else - Actions
-
-
-
-
-