Apparently, my Hero dies when I add an ability to it via triggers.
AND IT ONLY HAPPENS WHEN HE REACHES A CERTAIN LEVEL AND I AM VERY SURE IT WAS BECAUSE OF THE ADD ABILITY FUNCTION, I TROUBLESHOOT IT MANY TIMES. PREPLACED HEROES DO NOT SUFFER FROM THIS ERROR. ONLY TO HEROES WHICH IS BOUGHT (Like in AoS maps, hero picking) AND IS STORED TO A UNIT ARRAY.
At first, my heroes were maxed at level 32, and once they reach level 29, they die whenever I add an ability. There is no damage involved, I use looking for help's GUI Damage Detection, and I tried to put a game message to how much damage the hero takes and whose source it is when it dies while I give it an ability. I tried to solve it by lowering the max level to 25. Yes it worked, but only for a while. After continuing to edit my map, the problem started again. Now starting from level 22, the heroes die when I put ability to them.
WHAT IS HAPPENINGGGGGGG
AND IT ONLY HAPPENS WHEN HE REACHES A CERTAIN LEVEL AND I AM VERY SURE IT WAS BECAUSE OF THE ADD ABILITY FUNCTION, I TROUBLESHOOT IT MANY TIMES. PREPLACED HEROES DO NOT SUFFER FROM THIS ERROR. ONLY TO HEROES WHICH IS BOUGHT (Like in AoS maps, hero picking) AND IS STORED TO A UNIT ARRAY.
At first, my heroes were maxed at level 32, and once they reach level 29, they die whenever I add an ability. There is no damage involved, I use looking for help's GUI Damage Detection, and I tried to put a game message to how much damage the hero takes and whose source it is when it dies while I give it an ability. I tried to solve it by lowering the max level to 25. Yes it worked, but only for a while. After continuing to edit my map, the problem started again. Now starting from level 22, the heroes die when I put ability to them.
WHAT IS HAPPENINGGGGGGG