progress in attack menu, MAXUnitObject optimization