Currently, there is no way to know the faction of a hero.
*
GetHeroFaction(hero)
hero: the hero whose faction you want to know (see, for example, GetHero).
Returns the faction of the given hero as a number.
- "0" for Knight.
- "1" for Barbarian.
- "2" for Sorceress.
- "3" for Warlock.
- "4" for Wizard.
- "5" for Necromancer.