Thread:LuxRegem/@comment-24245027-20131214121340/@comment-24108837-20131215213701

I found this. It got me right on target in all cases. I did it in steps in a spreadsheet and I will follow those steps.

That is equivalent to what you did. But it has an error if I attack with 4 knights. So for that case I had to do it differently. This is what I did. It got me an error of 0 so far. But only for the 4 knight attack.
 * 1) I calculate the basic attack = attack factor * elemental advantage * attack(boss) / defense (me). The attack factor is 164 in my case (level 111).
 * 2) I calculate the 1 knight attack = FLOOR(basic attack) This is the attack value without the attack of the other knights added.
 * 3) knight bonus = FLOOR((number of knights - 1)  * 0.25 * basic attack)
 * 4) hit force = 1 knight attack + knight bonus

I don't know why they messed around with the rounding so much, but they did.
 * 1) same as step 1 above.
 * 2) doubled basic attack = 2 * FLOOR(basic attack) 
 * 3) difference = ROUND((0.25 * basic attack) + 0.25)
 * 4) hit force = doubled basic attack - difference