Fixed issue #114

This commit is contained in:
Seefo
2014-03-23 16:04:57 -04:00
parent bd228e971a
commit c0fcda14df
2 changed files with 3 additions and 5 deletions
-3
View File
@@ -287,15 +287,12 @@ public class SkillService implements INetworkDispatch {
public int caluclateExpertisePoints(CreatureObject creature)
{
int expertisePoints = 0;
try
{
DatatableVisitor table = ClientFileManager.loadFile("datatables/player/player_level.iff", DatatableVisitor.class);
for (int i = 0; i <= creature.getLevel(); i++) expertisePoints += (int) table.getObject(i, 5);
}
catch (Exception e) { e.printStackTrace(); }
System.out.println("Player should have " + expertisePoints + " expertise points.");
return expertisePoints;
}