Could you please tell me if the artifact obtained in the last battle before victory is taken into account?
Of course, it is taken into account, and not only that, but the artifact (or artifacts) obtained directly in the last battle is also taken into account. ;)
Sincerely, VDV_forever