Talk:Attdef Against
Does it really work?
I was attacked by a mage today. His Shadow elemental were paired with my Phoenixes. Since Phoenixes are Elementals and shadow elementals have the Attdef Against ELEMENTAL ability, I thought my Nixes would suffer, but it didn't happen. After computing the damage, I now doubt that the Attdef works in this case. Here is the relevant information:
Name - # of Units Attack Extra Counter Hitpoints <br> Shadow Elemental ?????? XXX XXX XXX 3000<br> Abilities Attdef Against ELEMENTAL<br> Resistance: MAGIC 45% RANGED 45% <br> Name - # of Units Attack Extra Phoenix 36 178000 600000 My(#)'s hero XXX XXX Warlord starts to command unit XXX [not Phoenixes]. Sun, the Father of the Sky blessed My(#)'s armies! Assault Note My (#)'s Phoenix attacked His(#)'s Shadow Elementals. My (#)'s Phoenix slew His (#)'s 475 Shadow Elementals.
This gives:
NbKills = Nb_Units*BaseDamage*Accuracy*(1-Resistance)*Efficiency*RandomModifier/Hitpoints
Accuracy is affected by swift (-10%), Sun's favor (+3%) and my warlord's Tactics level 1 (+1%): total 24%
His resistance to magic range id 45%
Random modifier for magic ranged is actually not random but fixed at 0.5
This attack is the very first in this battle, so no fatigue is involved.
I assumed that the effect of AttDef would either be included in the efficiency factor (like Charm) or counted as an additional factor (like scales), so I wanted to compute this factor:
= 36 * 600000 * (0.3-0.1+0.4) * (1-0.45) * Efficiency * 0.5 / 3000
= 475.2 * efficiency
I get the exact number of casualties that I would have expected without this AttDef ability.
So:
- Does this ability not work properly for Shadow Elementals?
- Are the Phoenixes not correctly identified as Elementals?
- since the Shadow elementals did not attack the Phoenixes but a non elemental unit, did the software only check the kind of creature that the shadow elementals attack to see if they are elementals, instead of doing two independent checks for the attacking and attacked units?
- Does the ability not work on defense?
- am I wrong somewhere?
P.S: 1) for the record, this happened on the beta server
2) the same applies to the phoenixes' primary attack who killed 79 shadow elementals (they should have killed 79.5 without the Attdef ability). If you want to check that, 7 Phoenixes were killed before the primary attack and they suffered the effect of fatigue twice. I'll let you do the maths.
Regards,
Aestil