Malice-
Endlessly Known
- Reaction score
- 34
Basically, I'm attempting to make an ability based on Charm that grants the caster control of the target unit for a certain ammount of time, then gives control back to the original owner. It's not working, and i was wondering if anyone had any ideas. Here is the trigger:
Note: Once the unit returns to its original owners control, it is supposed to 'enrage', which is the dummy shaman casting bloodlust on it, although i'm not sure that that part works either ...
Note: Once the unit returns to its original owners control, it is supposed to 'enrage', which is the dummy shaman casting bloodlust on it, although i'm not sure that that part works either ...
Code:
Mind Control
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Mind Control
Actions
Set Charm_Caster = (Casting unit)
Set Charm_Target = (Target unit of ability being cast)
Set Charm_Target_Player[(Player number of (Owner of (Target unit of ability being cast)))] = (Owner of (Target unit of ability being cast))
Wait 30.00 seconds
Unit - Change ownership of Charm_Target to Charm_Target_Player[(Player number of (Owner of (Target unit of ability being cast)))] and Change color
Unit - Create 1 Shaman (DUMMY) for Charm_Target_Player[(Player number of (Owner of (Target unit of ability being cast)))] at (Position of Charm_Target) facing (Position of Charm_Target)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Orc Shaman - Bloodlust Charm_Target
Unit - Order Charm_Target to Attack Charm_Caster