I have a passive spell. The AoE of the spell is 900. If an enemy within that area has less than or equal to 100 hit points, that unit will be revealed or will be casted a faerie fire.
--
I can't think of another easier way of doing this spell.
If you have a better idea, please do suggest.
-
Hunger
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Hunger (Fear)
-
Actions
- Set Hunger_MainUnit = (Learning Hero)
- Set Hunger_MainUnitPoint = (Position of (Learning Hero))
-
Events
-
Hunger Loop
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set Hunger_UnitGroup = (Units within 900.00 of Hunger_MainUnitPoint matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Hunger_MainUnit)) Equal to True) and (((Matching unit) has buff Hunger (Fear)) Equal to True))))
-
Unit Group - Pick every unit in Hunger_UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Life of (Picked unit)) Less than or equal to 50.00
-
Then - Actions
- Unit - Create 1 Dummy (Datu Voodoo) for (Owner of Hunger_MainUnit) at (Position of (Picked unit)) facing Default building facing degrees
- Unit - Add Hunger (Dummy) to (Last created unit)
- Unit - Set level of Hunger (Dummy) for (Last created unit) to (Level of Hunger (Fear) for Hunger_MainUnit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Faerie Fire (Picked unit)
-
Else - Actions
- Custom script: call DestroyGroup(udg_Hunger_UnitGroup)
- Custom script: call RemoveLocation(udg_Hunger_MainUnitPoint)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events
If you have a better idea, please do suggest.
Last edited by a moderator: