• 🏆 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!

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,407
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