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