• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Detecting Attack Type (Pierce, Magic, ...) of Attacking Unit

Status
Not open for further replies.
Level 1
Joined
Aug 25, 2010
Messages
4
Hi,
I need help because I'd like to detect of which type an attack was, when a unit got attacked.
The idea behind this to make a kind of mirror shield which should first absorb the damage (done this with a mana shield because it's easy^^) and cast effects and spells depending on the attack type. e.g. if an archer would attack the caster with pierce dmg and with range the shield would cast e.g. a stormbolt on the archer (done by a dummy).
I'd prefer a GUI solution but JASS would do this, too. But I couldn't find a possibility to check the attack type.
Or is it only possible to check the attacktype BEFORE the attack? (well I couldn't find sth. like that, too)

Thx
 
Status
Not open for further replies.
Top