Barbarian Luck reduces magic damage by 5%, regardless of the Luck stat.
PS I remembered that Gotay had a Dwarven set of two out of four artifacts, which improves magic resistance by 40%.
Just for fun, I'll try replaying the battle without this set.
Added 1 hour 24 minutes ago
Well, that's it, I tore Alaric to shreds! Losses were about a hundred centaurs in total =) and Gotay's stats are just insane, he's a terminator, even Freya didn't have such stats when I played as Lords of the North. Attack is over 50, defense is over 50, knowledge and magic power are over 30. By the way, I took almost 3,000 Magnetic Golems for the final battle, but I didn't even have time to get them into the fight, I solved everything before that =)))
PS Before the last battle, I trained Gotay in Education instead of Machines, because the Kujin didn't have the Horde Fury spell, but Gotay does, and he will have to learn it) if he can, of course))