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

trigger based damage is too low

Status
Not open for further replies.
Level 14
Joined
Aug 30, 2004
Messages
909
I have a trigger that hits summoned units - like an area of effect purge. The text is:

Unit Group - Pick every unit in (Units within 512.00 of (Position of (Casting unit))) and do (If (((Picked unit) is Summoned) Equal to True) then do (Unit - Cause AamanianWH to damage (Picked unit), dealing 200.00 damage of attack type Spells and damage type Normal) else do (Do nothing))

It works but does less than the 200 damage to the target unit (around 160 I think). The target unit has 0 armor and normal armor type. I'm sure it's less than 200 because it doesn't kill units with 180 but brings them very low.

Can anyone think why this would be?
 
Well, armor has nothing to do with it. That's called magic resistance. You could change the attack type to "Chaos" instead of "Spells". "...damage of attack type Chaos and damage type Normal". Apparently the 40 damage left behind is the one they resist through their magic resistance. Chaos deals full damage, try it. If this doesn't work as well, use
  • Unit - Set life of (Picked unit) to (((Life of (Picked unit)) - 200)
.
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
Well, armor has nothing to do with it. That's called magic resistance. You could change the attack type to "Chaos" instead of "Spells". "...damage of attack type Chaos and damage type Normal". Apparently the 40 damage left behind is the one they resist through their magic resistance. Chaos deals full damage, try it. If this doesn't work as well, use
  • Unit - Set life of (Picked unit) to (((Life of (Picked unit)) - 200)
.


True.

But don't use "set life" because it won't identify the actual "killer" of the unit.
 
Status
Not open for further replies.
Top