HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I question about armor

06-04-2011, 04:26 PM#1
Fasolace
Im just wondering if the damage type "Magic" is reduced by the Armor damage reduction.
I know "Spells" ignore armor right? Just wondering if Magic does the same.

Also, is the damage type "Magic" in the trigger editor the same as the auto-attack one?

Thanks in advance.
06-04-2011, 10:08 PM#2
Nuclear Arbitor
i don't think so; it says somewhere what magic is good against, i think heavy armor or something, but chaos is the only one that ignores armor and it ignores all. afaik if you mouse over the armor in game the tooltip will tell you
06-05-2011, 12:18 PM#3
Fledermaus
Chaos doesn't ignore armor.

As for the original question, do you mean with attacks or with UnitDamageTarget?
06-05-2011, 12:58 PM#4
Fasolace
Quote:
Originally Posted by Nuclear Arbitor
i don't think so; it says somewhere what magic is good against, i think heavy armor or something,

I'm not talking about the advantages different types have against each other. I'm talking about the "Damage reduction" that all Armor types have.

Quote:
Originally Posted by Fledermaus
Chaos doesn't ignore armor.

You're right. I tested most of the attack types, and all of them is reduced by "Damage reduction".
And when I set a units attack type to "Spell" in the Object editor, it gets normal attack type ingame.

Looks like there is no way to make an attack type that ignores armor then. :(
06-05-2011, 10:30 PM#5
Ignitedstar
Well, there is a way. You'd have to trigger the whole thing, that's all. There are plenty of ways it can be done, but it will take a lot of time to make. I was thinking about doing this myself at one point. It's a lot of work and you'd better have a good reason to implement something that will take lots of time to make. If it's for one spell, not really worth it. If it's important to the map, then it's probably worth it.
06-06-2011, 04:26 AM#6
Fledermaus
Quote:
Originally Posted by Fasolace
And when I set a units attack type to "Spell" in the Object editor, it gets normal attack type ingame.
That's just the tooltip for it. It is actually a different attack type.
I just checked and it is also reduced by armor as an attack.

How's your jass/vJass knowledge? There is a work around you could do semi-easily.
06-06-2011, 05:55 PM#7
Anitarf
Quote:
Originally Posted by Ignitedstar
Well, there is a way. You'd have to trigger the whole thing, that's all. There are plenty of ways it can be done, but it will take a lot of time to make.
Not really, it could be done fairly quickly. With the help of DamageModifiers in combination with AutoData, you can quickly make a modifier that gets automatically created for a unit type that blocks the incorrect damage and then deals triggered damage that ignores armour.

The only difficult part, depending on the map, is determining how much damage to deal. If there are many ways in the map to modify the unit's attack damage, getting the actual amount that should be dealt on the unit's attack can get complicated. One way would be to somehow get the attacked unit's armour and reverse-engineer the original damage from there, but getting the armour can have the same problems as getting the attack damage (although there is a library for getting a unit's armour afaik). Another way would be to simply do all your damage bonuses through bonus mod.
06-07-2011, 06:38 PM#8
Fasolace
Ah right. It all seems very complicated in whatever way and it's not worth it becuase it's not a very important part of the map.

Anyway, thanks for the help everyone.
06-08-2011, 12:51 AM#9
Fledermaus
It's pretty simple if you know how to use jass/vjass. I made a trigger to do it yesterday and it's pretty easy but needs like 6 libraries to work which you might want to use.