• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to damage both Divine and Ethereal units?

Status
Not open for further replies.
Level 3
Joined
Sep 9, 2009
Messages
658
What's the best set up that can damage a unit that is both Divine and Ethereal without editing the gameplay constants? If I wanted spells that could damage Divine type units, I'd always trigger my spells to have ATTACK_TYPE_CHAOS but then this doesn't damage Ethereal units. Even if I add a check to change the attack type whether the target is Ethereal or not, I run into a wall when a Divine unit becomes ethereal.
 
Level 16
Joined
Mar 25, 2016
Messages
1,327
If you use the combination Chaos (Attack Type) + Magic (Damage Type) both ethereal and divine units should take full damage.
Only spell immune units won't take damage, but you can add a check if the unit is spell immune and then use Chaos + Universal instead.
A unit should never be ethereal and spell immune at the same time.
 
Level 3
Joined
Sep 9, 2009
Messages
658
If you use the combination Chaos (Attack Type) + Magic (Damage Type) both ethereal and divine units should take full damage.
Only spell immune units won't take damage, but you can add a check if the unit is spell immune and then use Chaos + Universal instead.
A unit should never be ethereal and spell immune at the same time.

Thank you! It works like a charm!
 
Status
Not open for further replies.
Top