• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Need Anti-Undead Passive Attack

Status
Not open for further replies.
Level 5
Joined
Jul 24, 2009
Messages
70
I need a spell, using GUI if possible, to make some units deal extra damages to undeads but not to living ones.

I tried to edit a object ability giving extra bonus and set the target to Dead only but it doesn't work, it hit living too.

Someone can help me?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Trigger the spell, fully :)
By using this as condition;
  • (DamageEventTarget is Undead) Equal to True
And use this to damage the unit, physically;
  • Unit - Cause DamageEventSource to damage DamageEventTarget, dealing (Damage taken) damage of attack type Hero and damage type Normal
And a little bit of Damage Detection System, you can achieve the desired effect.
 
Trigger the spell, fully :)
By using this as condition;
  • (DamageEventTarget is Undead) Equal to True
And use this to damage the unit, physically;
  • Unit - Cause DamageEventSource to damage DamageEventTarget, dealing (Damage taken) damage of attack type Hero and damage type Normal
And a little bit of Damage Detection System, you can achieve the desired effect.

The problem with that is if the unit has any spells that deal damage, it will trigger on those as well, so they would all have to be triggered.
 
Level 5
Joined
Jul 24, 2009
Messages
70
Ok I found out how to make it in an easier way.

I have set it like this:
  • Event : A unit is attacked
  • Condition: Attacking unit equal to Paladin
  • Action:
  • If: Attacked unit equal to a undead equal True
  • Then: Deal 100 damages on attacked unit
  • Else: Do Nothing
Only problem found, it deals damage before the unit hit so if I would know how to make it damage based event, I would do it.

Edit: After my fail with triggers I tried to directly apply the ability to a unit and it work very well. Thank you.
 
Status
Not open for further replies.
Top