- Joined
- Apr 24, 2012
- Messages
- 5,113
Hello,
I am not that familiar on Wc3 Mechanics but let me ask, how does DAMAGE_TYPE affects the autoattack damage outcome to a unit? also what about WEAPON_TYPE? The only part of the damage outcome I understand is that it is affected by Attack Value then Attack Type then Armor Type then Armor Value. I can't seem to figure out at what part this two comes.
I am also planning to make a GetUnitAttackType lib that's why I asked this question so that I would be more cautious in the making of this lib.
My proposal is that When GetUnitAttackType is called, it will check for the unit-type id of the given unit and searches for it's attack type. If nothing is found, the function will then create 2 dummies, the one with the same unit-type of the given unit and the other is the damage receiver. The dummy of the same unit-type will then deal damage towards receiver, which will then fire LFH's Physical DD. With the combination of an Armor lib and Attack Type value table, the function will then calculate the base damage and then get's the quotient to acquire the actual Attack type value.
I am not that familiar on Wc3 Mechanics but let me ask, how does DAMAGE_TYPE affects the autoattack damage outcome to a unit? also what about WEAPON_TYPE? The only part of the damage outcome I understand is that it is affected by Attack Value then Attack Type then Armor Type then Armor Value. I can't seem to figure out at what part this two comes.
I am also planning to make a GetUnitAttackType lib that's why I asked this question so that I would be more cautious in the making of this lib.
My proposal is that When GetUnitAttackType is called, it will check for the unit-type id of the given unit and searches for it's attack type. If nothing is found, the function will then create 2 dummies, the one with the same unit-type of the given unit and the other is the damage receiver. The dummy of the same unit-type will then deal damage towards receiver, which will then fire LFH's Physical DD. With the combination of an Armor lib and Attack Type value table, the function will then calculate the base damage and then get's the quotient to acquire the actual Attack type value.
Last edited: