• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! 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