Exorcism

Level 5
Joined
Aug 2, 2015
Messages
69
Whats wrong with this trigger?
Im using fireball as my base ability as my hero already have Holy light which was interfering with this. The spell has 1s cast time.
  • Exorcism
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Exorcism
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) is Undead) Equal to False
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop.
          • Quest - Display to (All players) the Warning message: |cffff0000Only work...
        • Else - Actions
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Whats wrong with this trigger?
Im using fireball as my base ability as my hero already have Holy light which was interfering with this. The spell has 1s cast time.
  • Exorcism
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Exorcism
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) is Undead) Equal to False
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop.
          • Quest - Display to (All players) the Warning message: |cffff0000Only work...
        • Else - Actions
I believe if you remove the Casting Time then "Begins casting" would work as you'd expect.

Try using the Event "A unit Begins channeling an ability" since that occurs at the start of the Casting Time.
 
Last edited:

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
That's a bit odd, it really should work with one of those solutions. I know that certain abilities won't play nice but Storm Bolt/Firebolt should definitely get interrupted.

Other solutions:

Cancel the issued Order:
  • Exorcism Interrupt Order
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(firebolt))
      • (Level of Exorcism for (Triggering unit)) Greater than 0
    • Actions
      • Unit - Order (Triggering unit) to Stop.
Force the Unit to Stop by using Pause:
  • Actions
    • Unit - Pause (Triggering unit)
    • Unit - Order (Triggering unit) to Stop
    • Unit - Unpause (Triggering unit)
If on 1.31+, you can force the Unit to Stop by using a triggered Stun (preferable over pausing):
  • Actions
    • Custom script: call BlzPauseUnitEx( GetTriggerUnit(), true )
    • Unit - Order (Triggering unit) to Stop
    • Custom script: call BlzPauseUnitEx( GetTriggerUnit(), false )
 
Last edited:
Top