Fixed Out of Bounds error for expertise, changed modifier on skillmods to float

(BugFix) Fixed out of bounds error when assigning expertise points
(Code) Changed SkillMod's modifier variable to float value
(Code) Changed Charge! and Scatter! to use updated addBuffToCreature
This commit is contained in:
Waverunner
2014-03-27 14:43:04 -04:00
parent a3f7909e8d
commit 27759a53fd
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ public class SkillService implements INetworkDispatch {
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);
for (int i = 0; i < creature.getLevel(); i++) expertisePoints += (int) table.getObject(i, 5);
for (String skill : creature.getSkills()) if(skill.startsWith("expertise_")) expertisePoints--;
}
catch (Exception e) { e.printStackTrace(); }