- Joined
- Jul 28, 2013
- Messages
- 768
I'm making the Disarm spell that stops a targeted unit from attacking.
I used the channel spell for the unit and the silence spell for the dummy.
Why isn't this working?
Disarm Config
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Set Disarm_Dummy = Dummy
Set Disarm_Ability = Disarm
Set Disarm_DBuffAbil = Disarm (Dummy)
Disarm Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Disarm_Ability
Actions
Set TempPointDisarm = (Position of (Targeted unit))
Unit - Create 1 Disarm_Dummy for Player 4 (Purple) at TempPointDisarm facing Default building facing degrees
Set TempDummyDisarm = (Last created unit)
Unit - Add Disarm_DBuffAbil to TempDummyDisarm
Unit - Set level of Disarm_DBuffAbil for TempDummyDisarm to (Level of Disarm_Ability for (Casting unit))
Unit - Order TempDummyDisarm to Neutral Dark Ranger - Silence TempPointDisarm
Unit - Add a 1.00 second Generic expiration timer to TempDummy
Custom script: call RemoveLocation (udg_TempPointDisarm)
I used the channel spell for the unit and the silence spell for the dummy.
Why isn't this working?
Disarm Config
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Set Disarm_Dummy = Dummy
Set Disarm_Ability = Disarm
Set Disarm_DBuffAbil = Disarm (Dummy)
Disarm Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Disarm_Ability
Actions
Set TempPointDisarm = (Position of (Targeted unit))
Unit - Create 1 Disarm_Dummy for Player 4 (Purple) at TempPointDisarm facing Default building facing degrees
Set TempDummyDisarm = (Last created unit)
Unit - Add Disarm_DBuffAbil to TempDummyDisarm
Unit - Set level of Disarm_DBuffAbil for TempDummyDisarm to (Level of Disarm_Ability for (Casting unit))
Unit - Order TempDummyDisarm to Neutral Dark Ranger - Silence TempPointDisarm
Unit - Add a 1.00 second Generic expiration timer to TempDummy
Custom script: call RemoveLocation (udg_TempPointDisarm)