Thread:FixSRwiki/@comment-46261745-20201002230402/@comment-46261745-20201003130358

As for the math, let me work this out

Magic damage = Magic  attack - Magic defence

Magic attack = Baase class MDamage + (INT * ((100+Buffs) / 100))

- The Base class damage for a fiend mage appears to be the default of 5... Mages have 45, so I'm not sure why fiend mages are so weak...

Magical defence = INT * ((100+buffs) / 100) * 7 + (if diviner guard) 1

Interesting, so that's all calculated before troop multipliers. somehow magical defence stats don't get weakened by high  troop. counts, but the attack overall will.

So for the troop adjustment we're looking at 500 * Magical damage + (541/2 * Magical damage)

Then that is multiplied by 0.5 (the damage effectiveness of Lightning)

Yoou didn't acatually tell me your troops intelligence stat... but here's what I think the full formula comes out as, so if we substitute your INT stat in there, we should be able to find out the enemy INT stat...

( ( ( ( 5 + (eINT * 100) ) - ( (aINT * 70) + 1 ) ) * 500 ) + ( ( ( 5 + (eINT * 100) ) - ( (aINT * 70) + 1 ) ) * 270 ) ) * 0.5 = 98

The 270 might be 271 if it rounds up, but I'm pretty certain this should round down since it's in a lint var)