- Joined
- Mar 23, 2016
- Messages
- 35
I'm trying to make a spell that creates a temporart copy of an enemy Hero to use. I can easily get all their stats, no problem.
However, I want to take it a step further and copy all of their skills as well so that I can set the ability levels of the summoned copy accordingly.
It seems possible to use
but that brings 2 problems already. Firstly, I don't know if it can recognize Hero abilities, and secondly, I can't debug it.
Anyhow, this expedition seems failed since I can't find a way to get the Hero abilities from a Hero.
However, I want to take it a step further and copy all of their skills as well so that I can set the ability levels of the summoned copy accordingly.
It seems possible to use
Code:
native BlzGetUnitAbilityByIndex takes unit whichUnit, integer index returns ability
but that brings 2 problems already. Firstly, I don't know if it can recognize Hero abilities, and secondly, I can't debug it.
Anyhow, this expedition seems failed since I can't find a way to get the Hero abilities from a Hero.