• 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.

[Solved] UnitDamageTargetBJ() kills prevent cooldown and mana costs

Status
Not open for further replies.
Level 28
Joined
Feb 2, 2006
Messages
1,635
Hi,
I have multiple custom spells using UnitDamageTargetBJ() to damage the spell target unit.
The event is EVENT_PLAYER_UNIT_SPELL_CHANNEL.
However when the target gets killed by the amount of damage the cooldown and mana costs are ignored as spell would not have been cast.
How can I fix that? TriggerSleepAction() probably would help or another event but I still want to use all event reaction functions and to avoid any sleeps.
 
Last edited by a moderator:
Status
Not open for further replies.
Top