Jewily, thank you, you're right, I really overlooked it. Now it gives an error on this line:
if GetHeroName(defH) == "Shadwyn" and GetHeroName(attH) == "Nur" then
Maybe I made a mistake with the "end" statements, but it doesn't seem like it.
Maybe I made a mistake with the "end" statements, but it doesn't seem like it.