• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Curse cast from the hidden unit

Level 11
Joined
Jul 28, 2024
Messages
340
I try to cast curse from a hidden unit with a limited lifetime (0.1 sec)
What i encounter is that curse ends up on the wrong units.
Any idea how can i apply this buff reliably?

  • I've set cast point of the hidden unit to 0
  • I set mana for the cast to be same to mana that hidden unit has so this is not a second cast.


The first cast goes to a wrong target sometimes it seems. My primary goal to add a buff for the unit i exactly want.
 
We'd have to see your trigger to understand the issue.

Here's a working example:
  • Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Storm Bolt
    • Actions
      • Set VariableSet Curse_Point = (Position of (Target unit of ability being cast))
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Curse_Point facing Default building facing degrees
      • Custom script: call RemoveLocation( udg_Curse_Point )
      • Set VariableSet Curse_Dummy = (Last created unit)
      • Unit - Add Curse (Dummy) to Curse_Dummy
      • Unit - Add a 0.20 second Generic expiration timer to Curse_Dummy
      • Unit - Order Curse_Dummy to Undead Banshee - Curse (Target unit of ability being cast)
The ordering of the Actions is very intentional. This also deals with memory leaks.
 

Attachments

Back
Top