[JASS] Checking Armor

Status
Not open for further replies.
Yes, a custom made database can. All you need is so that when you pass it the unit type, it looks up a table and returns a armor type that you can process.

The disadvantage is all unit types have to be added to it on map initialization manually via trigged.

You could also try armor type detection via seing how differeint damage types behave on it, however this is more complex.

There are no natives which just return the type so a system has to be made.
 
Daelin made some system for that.

You can also do it like I do it, and calculate it by using units Agility and unit:Armor ( UnitProperties value, its a great system )
 
Even if you use Daelins system, I suggest you to check UnitProperties from wc3c.net.

That system makes things like calculating units attack speed or armor almost too easy.
 
Status
Not open for further replies.
Back
Top