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

[JASS] Detecting Orb Spell Cast

Status
Not open for further replies.
Get a damage detection system and check if the unit that takes damage has the buff Purge (in case you use the ability the default item has) and it is not in the Unit Group X. If it does, it is detected; add it in a Unit Group X and start a repeating timer, which will check when the buff is removed. Once it is removed, remove the unit from the Unit Group. Obviously, hashtables would be the best solution for you, but structs can do fine.
 
Status
Not open for further replies.
Top