- Joined
- Jun 10, 2013
- Messages
- 473
Despite the name the spell I want to isn't based off life drain it works like this:
unit with Lifedrain buff will Drain 2 hit points a second from enemies within 200 aoe of itself a second however I just can't figure out how to trigger this.
what I've done so far:
unit with Lifedrain buff will Drain 2 hit points a second from enemies within 200 aoe of itself a second however I just can't figure out how to trigger this.
what I've done so far:
-
Fel Energy
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Set TempUnit = (Triggering unit)
- Set TempPoint = (Position of TempUnit)
- Set TempOwner = (Owner of TempUnit)
- Set tempReal = 200.00
- Set tempGroup1 = (Units within tempReal of TempPoint matching (((Picked unit) belongs to an enemy of TempOwner) Equal to True))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (TempUnit has buff Fel Energy ) Equal to True
-
Then - Actions
- Unit - Set life of TempUnit to ((Life of TempUnit) + 2.00)
-
Unit Group - Pick every unit in tempGroup1 and do (Actions)
-
Loop - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 2.00)
-
Loop - Actions
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation (udg_TempPoint)
- Custom script: call DestroyGroup (udg_tempGroup1)
-
Events