Skip to content
User Avatar
#891
Auto-translated
yes, I already did that. I would simply check how much mana he had at the beginning of the battle, then give him 100, and after a random cast, return the amount he had at the beginning of the battle. Thank you very much! Now it's much clearer to me.

Added 3 hours and 55 minutes later
I have a new question:

-How do I check the hero's name at the start of the battle?
I'm recording it like this:

hero = GetAttackerHero()
if GetHeroName(hero) == 'Alaric' then

But it doesn't work... Even if I write it simpler:

hero = GetAttackerHero()
if hero == 'Alaric'

Ps: I'm probably bothering you a lot, but I really want to figure this out.

Whatever