if (heroExp == 0) {
return;
}
Hero hero = heroes.getCharacterManager().getHero(event.getPlayer());
if (hero.hasParty()) {
hero.getParty().gainExp(heroExp, HeroClass.ExperienceType.EXTERNAL, event.getPlayer().getLocation());
} else {
hero.gainExp(heroExp, HeroClass.ExperienceType.EXTERNAL, event.getPlayer().getLocation());
}
}