Phantompoo
New Member
- Reaction score
- 0
I've created an aura that provides a health buff to units similar to fortitude in WoW. Rank 1 works perfectly, but rank 2 and 3 are broken. I'm sure it's something in my trigger. Basically, the issue is that when a unit is in range, it receive the rank 1 health buff (100 hp) but when they leave range, they lose rank 2 or 3 health buff (200 and 300 hp respectively). It basically kills my team if they get the aura more than once.
If anyone spots an issue that could be causing my problem, please let me know. Thanks.
Trigger:
- Learn
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Fortitude Aura
- Actions
- Set TriggerUnit = (Triggering unit)
- Set TriggerUnitLoc = (Position of (Triggering unit))
- Trigger - Turn off (This trigger)
- Events
Trigger:
- Action
- Events
- Time - Every 0.04 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in (Units owned by (Owner of TriggerUnit)) and do (Actions)
- Loop - Actions
- Set PickedUnit = (Picked unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (PickedUnit has buff Fortitude Aura ) Equal to True
- Then - Actions
- Unit - Add Fortitude to PickedUnit
- Unit - Set level of Fortitude for PickedUnit to (Level of Fortitude Aura for TriggerUnit)
- Else - Actions
- If - Conditions
- Wait until ((PickedUnit has buff Fortitude Aura ) Equal to False), checking every 0.10 seconds
- Unit - Remove Fortitude from PickedUnit
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by (Owner of TriggerUnit)) and do (Actions)
- Events
If anyone spots an issue that could be causing my problem, please let me know. Thanks.