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

Simple Trigger

Status
Not open for further replies.
Level 24
Joined
Aug 1, 2013
Messages
4,658
You can create a dummy and use a unit indexer.
That unit should use Blizzard and have an integer array variable of his index be set to the rawcode of Blizzard.
Then when a unit takes damage and the value of that integer array is equal to Blizzard, the unit has been damaged by the spell Blizzard.
At that moment, you can change the source back to the original caster (also stored in an array) and do whatever you want to do more... like stun the targets.

That is afaik the only way to detect when a specific spell damaged a unit.

EDIT:
Or instead of using an integer array variable, you can use an ability array variable.
I think I am getting a little too used to JASS.
Anyway it works the same.
 
Status
Not open for further replies.
Top