• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] "Unit type of target unit of ability being cast" does not work...

Status
Not open for further replies.
Level 10
Joined
Feb 19, 2006
Messages
237
The "Unit type of target unit of ability cast" condition returns false even though it is true. Whats wrong with this trigger?

  • Trap Disabler
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Trap Disabler
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Target unit of ability being cast)) Equal to Knife Trap
        • Then - Actions
          • Game - Display to (All players) the text: target unit type is knife trap!
        • Else - Actions
          • Game - Display to (All players) the text: target unit type is NOT knife trap!
 
Status
Not open for further replies.
Top