Love-Nature
New Member
- Reaction score
- 7
I just made an ability that controls an enemy hero for a short duration, well i can control it but then i want it to return back to the previous owner, i tried using this but it didnt work
It works
_____________________________________
It doesnt
Also i will have to check if unit is dead during this process while controlled, how to turn it back to previous owner before it revives, so just when it actually dies.
Trigger:
- Charm
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to (==) Charm
- Actions
- Set CharmCastUnit = (Casting unit)
- Set CharmTargetUnit = (Target unit of ability being cast)
- Unit - Change ownership of CharmTargetUnit to (Owner of CharmCastUnit) and Retain color
- Trigger - Run FloTex Target3 <gen> (checking conditions)
- Countdown Timer - Start Timer13 as a One-shot timer that will expire in (3.00 + ((Real((Level of Charm for CharmCastUnit))) x 1.00)) seconds
- Events
It works
_____________________________________
It doesnt
Trigger:
- Charm Expire
- Events
- Time - Timer13 expires
- Conditions
- Actions
- Unit - Change ownership of CharmCastUnit to (Previous owner) and Retain color
- Trigger - Run FloTex Target3e2 <gen> (checking conditions)
- Events
Also i will have to check if unit is dead during this process while controlled, how to turn it back to previous owner before it revives, so just when it actually dies.
Here i also used CharmTarget Charm Target / CharmCast CharmCast / cast target / target cast etc! omg
Unit - Change ownership of CharmCastUnit to (Previous owner) and Retain color