Fixed removeSkill bug, read extended

Under certain circumstances, a skill would not be removed because of an
invalid skill mod being removed.
This commit is contained in:
Seefo
2014-03-28 10:31:53 -04:00
parent 6af78d3438
commit 52696dde04
+1 -1
View File
@@ -221,7 +221,7 @@ public class SkillService implements INetworkDispatch {
}
for (String skillMod : skillMods) {
core.skillModService.deductSkillMod(creature, skillMod.split("=")[0], new Integer(skillMod.split("=")[1]));
if(skillMod.split("=").length == 2) core.skillModService.deductSkillMod(creature, skillMod.split("=")[0], new Integer(skillMod.split("=")[1]));
}
for (String schematic : schematicsGranted) {