Here's the ability:
it seems simple, I rest (go to sleep) for 5 secs and my hp is restored. It works fine when I cast it BUT, when an ennemy use it (Neutral hostil), he just regain the hp, he never Sleeps <____<
how come?
Trigger:
- Rest H
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- ((Ability being cast) Equal to Rest (H)) or (((Ability being cast) Equal to Rest (H)(Lv 19)) or ((Ability being cast) Equal to Rest (M)))
- Actions
- Set intLifeMax[0] = (Integer((Max life of (Triggering unit))))
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
- Unit - Add Hypnosis (Rest) to (Last created unit)
- Unit - Order (Last created unit) to Neutral - Firebolt (Triggering unit)
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Unit - Set life of (Triggering unit) to (Real(intLifeMax[0]))
- Events
it seems simple, I rest (go to sleep) for 5 secs and my hp is restored. It works fine when I cast it BUT, when an ennemy use it (Neutral hostil), he just regain the hp, he never Sleeps <____<
how come?