• 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.

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.
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
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