• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

armor value dicrease spell damage?

Status
Not open for further replies.
Level 7
Joined
Apr 13, 2012
Messages
105
i thought "Spells ignore armor value. They're only reduced by spell damage reduction (from the Runed Bracers item or etc). By default, hero and divine armor types reduce spell damage."

i dont even use hero armor but for some reason every armor point reduce spell damage (i have only tested spell damage via trigger for now)... wtf this isnt suppose to be happening
 
I had this problem at one point. Only found out when I implemented a "-stats" command that shows you your physical and magic damage reduction by dealing the damage and checking the amount done with damage detection.

I forget the exact solution, but I do know the problem. I'll have to check my map before I can figure out what I did though :( If no one figures it out, I will post back with what I found in my own map later tonight.
 
There's this nifty little resource I found recently called ArmorUtils thay allows you to catch the full damage done with function GetFullDamage takes real damage, real armor returns real. You can use it in conjunction with a DDS like Bribe's Damage Engine or PDD's to detect spell damage, and then catch the full damage from that function. I haven't tested if it does work with damage dealt from spells though, as ArmorUtils uses chaos damage to calculate the armor reduction.
 
Hmm i wonder if this is why spell damage wasnt showing the correct value in my map. Maybe setting it to universal will do the trick. Most spells in wc3 does ignore armor, except a few spells like "kaboom" ability which do spell damage but is being reduced by unit armor value like normal damage.
 
You can also check my custom multishot (in my signature).
I'm using a little trick to find out the target's armor:

I Give the unit 30000 HP and heal it to max, then I damage it for 15000, with attack type = the unit's attack type. Then I check the difference between the unit's health and its max health. I divide that value by 15000 and I get one coef. When I multipy it by the damage dealt - I get the base damage.
Do have in mind that you need to use damage type "normal" for armor to reduce it.

~Some credit should go to Wietlol for helping me find a way to calculate that coef~
 
Status
Not open for further replies.
Back
Top