• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

HIVE

Elprede
Elprede
One feasible method would be to check damage type as long as the damage source does not have a spell with the same damage type. Refer to this damage table.
deepstrasz
deepstrasz
Thanks. Yeah, that's a problem though, a limiting factor. However, wonder if you could somehow define via triggers or preferably in the ability editor what type of damage any spell can have.
Elprede
Elprede
if two spells have the same damage type, perhaps, you could differentiate them by damage amount or some other factor that will narrow down your search criteria.
deepstrasz
deepstrasz
Thanks again. Can hero/unit attack type be the same as that from one of the unit's spells?
Elprede
Elprede
Yes, that will not be a problem. You can detect attacks by checking if the attack type is not ATTACK_TYPE_NORMAL.
deepstrasz
deepstrasz
But does a unit take damage consider the attack type if I put it in a condition? If yes, the only confusion then is attack type magic with any ability in general?
Elprede
Elprede
Attack types are definitely a factor in general damage. Despite what you may be lead to believe by their names, attack types does not apply only to unit attacks.

All native abilities have ATTACK_TYPE_NORMAL as their attack type, but there are some exceptions, such as bash, which has a particular attack type, known as sonic.

However, based on information gathered around in The Hive, bash damage will always be part of unit attack damage for ranged units. That is just one thing to look out for.

Checking for ATTACK_TYPE_NORMAL will cover most bases.
Uncle
Uncle
The solution is simple, trigger ALL of the standard Warcraft 3 spells from scratch :p

If someone paid me I would do it, lol.
Top