Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
I've been looking for a function that would get the damagetype of the damage a unit takes, but I can't seem to find one. Does anyone know of something I could use for this? Does something exist for this?
Sry, but there isnt a function which detect damagetype.
you have to:
-only use triggered damage OR
-mark all units somehow)custom value,hash table, etc.) and make all spell damage triggered or cast by dummies
if you want to check if a damage type is either spell or normal dmg you can use an orb effect which places a buff for a very short duration (0.01 sec)
make a trigger which fires every time a unit takes damage and check if the unit got the buff
if yes you know that the unit just dealt normal damage
you don't have to give this orb effect ability to every unit
just add it if a unit enters the map
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.