Quote Originally Posted by AeroAgg06 View Post
It isn't a cav killing bug... It is a warriors doing double damage bug.. Entered the same line of code twice in a row in the same cell
got it. I never attack cav with warriors so didn't find it yet :-)

This one is all over the sheets plus it can be made more than twice as efficient so I post the patch I made for this here for us all to use... I take cell AV35 as example. It had the following formula:
Code:
=IF(IF(AU35=AS$16;AT$16;0)+IF(AU35=AS$17;AT$17;0)+IF(AU35=AS$17;AT$17;0)+IF(AU35=AS$18;AT$18;0)+IF(AU35=AS$19;AT$19;0)+IF(AU35=AS$20;AT$20;0)+IF(AU35=AS$21;AT$21;0)+IF(AU35=AS$22;AT$22;0)+IF(AU35=AS$23;AT$23;0)+IF(AU35=AS$24;AT$24;0)+IF(AU35=AS$25;AT$25;0)+IF(AU35=AS$26;AT$26;0)>AM48;AM48;IF(AU35=AS$16;AT$16;0)+IF(AU35=AS$17;AT$17;0)+IF(AU35=AS$17;AT$17;0)+IF(AU35=AS$18;AT$18;0)+IF(AU35=AS$19;AT$19;0)+IF(AU35=AS$20;AT$20;0)+IF(AU35=AS$21;AT$21;0)+IF(AU35=AS$22;AT$22;0)+IF(AU35=AS$23;AT$23;0)+IF(AU35=AS$24;AT$24;0)+IF(AU35=AS$25;AT$25;0)+IF(AU35=AS$26;AT$26;0))
and I patched it to:
Code:
=MIN(AM48;IF(AU35=AS$16;AT$16;0)+IF(AU35=AS$17;AT$17;0)+IF(AU35=AS$18;AT$18;0)+IF(AU35=AS$19;AT$19;0)+IF(AU35=AS$20;AT$20;0)+IF(AU35=AS$21;AT$21;0)+IF(AU35=AS$22;AT$22;0)+IF(AU35=AS$23;AT$23;0)+IF(AU35=AS$24;AT$24;0)+IF(AU35=AS$25;AT$25;0)+IF(AU35=AS$26;AT$26;0))
cheers,
DeVerm.