I'm trying to make a spell for a unit that dispels all negative buffs from an ally and keeps him from getting any negative buffs for some time.
The problem is that I'm trying to create a buff on the allied unit (the spell only displays negative buffs and this one is positive) but the buff does not show.
This is the rest of the trigger:
If anyone finds the reason that the buff does not show, please let me know.
The problem is that I'm trying to create a buff on the allied unit (the spell only displays negative buffs and this one is positive) but the buff does not show.
-
Then - Actions
- Trigger - Turn on Dispel over time dispel ally <gen>
- Countdown Timer - Start DispelOverTime as a One-shot timer that will expire in 15.00 seconds
- Set DispelAllyloc = (Position of (Target unit of ability being cast))
- Unit - Create 1 Dummy (Locust) (All) for (Owner of Bjarki) at DispelAllyloc facing Default building facing degrees
- Set DispelbuffUnit = (Last created unit)
- Unit - Add a 6.00 second Generic expiration timer to DispelbuffUnit
- Unit - Add Dispel over time (dummy)(bjarki) to DispelbuffUnit
- Unit - Set level of Dispel over time (dummy)(bjarki) for DispelbuffUnit to (Level of Dispel (Bjarki) for Bjarki)
- Unit - Order DispelbuffUnit to Night Elf Druid Of The Claw - Rejuvenation DispelOverTimeTarget
- Custom script: call RemoveLocation(udg_DispelAllyloc)
This is the rest of the trigger:
-
Dispel over time dispel ally
-
Events
- Time - Every 0.50 seconds of game time
- Conditions
-
Actions
- Unit - Remove Negative buffs from DispelOverTimeTarget
-
Events
-
Dispel over time dispel stop
-
Events
- Time - DispelOverTime expires
- Conditions
-
Actions
- Trigger - Turn off Dispel over time dispel enemy <gen>
- Trigger - Turn off Dispel over time dispel ally <gen>
-
Events
If anyone finds the reason that the buff does not show, please let me know.