Why does CreateHeroForPlayer create a hero twice?
Since some patches (7.0, I guess), I struggle with the 'CreateHeroForPlayer' function.
hero = CreateHeroForPlayer('npc_dota_hero_treant', player)
does create two heros for me. One of which I can play, the other I can not. The entity is uncontrollable. I am doing this at the beginning of DOTA_GAMERULES_STATE_HERO_SELECTION. My intention is to have default heros. The players cant select them, but get a default hero depending on their team number.
How would I solve this? Thanks in advance.