Hey all, I'm finally back. Need a hand with this trigger, it doesn't want to work when AI's cast the spell. If it's a player it works, no matter the slot, but if the controller is an AI then it doesn't work properly, even if I have control over the AI's units, it's supposed to spread the rejuvenation spell to all nearby allies. I don't understand why. Thanks
-
Dune mend lesser
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Dune Mending
-
Actions
- Set DunemendGroup = (Units within 300.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))
-
Unit Group - Pick every unit in DunemendGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Dune Mending ) Equal to False
-
Then - Actions
- Set DuneMendpOs = (Position of (Picked unit))
- Unit - Create 1 Caster for (Owner of Dunewalker) at DuneMendpOs facing Default building facing degrees
- Unit - Add Lesser Dune Mending (Neutral Hostile) to (Last created unit)
- Unit - Set level of Lesser Dune Mending (Neutral Hostile) for (Last created unit) to (Level of Dune Mending for Dunewalker)
- Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Rejuvenation (Picked unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup (udg_DunemendGroup)
- Custom script: call RemoveLocation(udg_DuneMendpOs)
-
Events