• 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] Ecent problem

Status
Not open for further replies.
Level 16
Joined
Sep 26, 2005
Messages
1,088
what's the event code for unit being hit by ability or attack's missile? for example i would like to make firball dependant upon hero's intelligence, and i need trigger to damage target when it's being hit, but not like in gui version when fireball starts flying. This question may be stupid but sill i'm new to JASS

And by "ecent" i meant "event" :p
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
A Unit Takes Damage, like razorbrain said. If you mean that that also detects spells, it's easy to fix -- add a dummy hidden Envenomed Spears/Slow Poison/etc to the unit that leaves a buff, then remove it as soon as the damage event fires -- if the unit had the buff, the damage was dealt by an attack.
 
Status
Not open for further replies.
Top