• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Very Simple Trigger not working

Status
Not open for further replies.
Level 14
Joined
Jul 12, 2011
Messages
1,370
Hey people!
So, I'm trying to make a spell in which when a hero casts a specific spell, he gains additional armor. The addition armor is gained by an ability casted from an invisible unit via this trigger:
  • Wooden Protection
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Wooden Protection
    • Actions
      • Set Point002 = (Position of (Triggering unit))
      • Unit - Create 1 Wooden Protection Inv Dummy for Player 1 (Red) at (Point001 offset by (100.00, 100.00)) facing 270.00 degrees
      • Unit - Set mana of (Last created unit) to 100.00
      • Unit - Add a 6.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Undead Lich - Frost Armor (Triggering unit)
      • Custom script: call RemoveLocation (udg_Point002)

Ability is based on fan of knives.
However the unit does not get spawned.
What's the problem?
 
Status
Not open for further replies.
Top