Im making a spell named Mind Control,its supposed to make an enemy target hero attack its allies for a short duration.I made the trigger,and it works fine to the point where the hero becomes invulnerable and changes owner,but after that,its like the trigger turned off,he doesnt turn back vulnerable or retain its former owner.
Also id like to make the hero NOT lose his hero icon to its former owner while hes charmed...can this be done?
-
Charm
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Mind Control
-
Actions
- Wait 0.10 seconds
- Set Charmed_Owner[1] = (Owner of (Target unit of ability being cast))
- Unit - Add Berserk to (Target unit of ability being cast)
- Unit - Remove All buffs from (Target unit of ability being cast)
- Wait 0.05 seconds
- Unit - Order (Target unit of ability being cast) to Orc Troll Berserker - Berserk
- Unit - Make (Target unit of ability being cast) Invulnerable
- Unit - Change ownership of (Target unit of ability being cast) to Player 6 (Orange) and Retain color
- Wait ((Real((Level of Mind Control for (Casting unit)))) + 3.00) seconds
- Unit - Remove Berserk from (Target unit of ability being cast)
- Unit - Remove All buffs from (Target unit of ability being cast)
- Unit - Make (Target unit of ability being cast) Vulnerable
- Unit - Change ownership of (Target unit of ability being cast) to Charmed_Owner[1] and Retain color
-
Events
Also id like to make the hero NOT lose his hero icon to its former owner while hes charmed...can this be done?