Fixed inability to calculate olympiad rewards.

This commit is contained in:
MobiusDev
2019-01-08 01:41:33 +00:00
parent 85401b7e89
commit 27322e4e87
20 changed files with 40 additions and 230 deletions

View File

@@ -1036,14 +1036,8 @@ public class Olympiad extends ListenersContainer
return 0;
}
int points = 0;
// Hero point bonus
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
{
points += Config.ALT_OLY_HERO_POINTS;
}
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
// Rank point bonus
switch (_noblesRank.get(objId))
{