• 🏆 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!

Damage Detection

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
i guess that impossible (idk about vjass part) because ability damage's dont got damage type declaration so to system the ability chain lightning damage is same than the normal autoattack.

if u want get the physical attacks then u must set ability damage to 0 for every ability in your map and do damage via trigger instead abilities and before the trigger damage use a variable for declare the damage type....

like:
Event: unit start casting
Condition: casted ability = firebolt
Action:
damagetype = 2
triggering damage to ability target with x damage blabla

and in damage modifier trigger (if u use DDS like Bribe Gui damage detection system) check damagetype value, if it is 0 = physical damage, else magical.
 
Status
Not open for further replies.
Top