it's hard to say for sure, of course, if you look at the entire map, maybe some other part of the code is affecting it...
as an alternative, you can try using PLAYER_REMOVE_HERO_TRIGGER:function RemoveHero(looser, winner)
if(looser == 'Aberrar') then
--checks for mines, etc.
end
end
Trigger(PLAYER_REMOVE_HERO_TRIGGER, id of the desired player, 'RemoveHero')
In this case, nothing happens at all after the hero is killed. There isn't even an error. And check your PMs.