-
SelfSleepSpell
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Go To Sleep
-
Actions
- Set SleepingHero = (Position of (Triggering unit))
- Unit Group - Add (Triggering unit) to SleepingUnits
- Unit - Create 1 SleepDummy for (Owner of (Triggering unit)) at SleepingHero facing Default building facing degrees
- Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Triggering unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Trigger - Turn on SleepingGainFatigue <gen>
- Custom script: call RemoveLocation (udg_SleepingHero)
-
Events
I tried changing the summoned dummy to Neutral Hostile in case it just wasn't casting sleep on it's own units, but it wouldn't cast sleep on the hero either.
Tried setting all the Triggering Units and Last Created Units to variables and it still won't cast on it.
It WILL cast on the enemy hero if I set the dummy's team to my own team for some reason, but I'd rather have the dummy belong to his team, as a dummy on my team with no view distance won't cast. No other team but myself seems to be able to do this.
Last edited: