|
|
@ -92,13 +92,6 @@ public class TrainMsg extends ClientNetMsg { |
|
|
|
|
|
|
|
|
|
|
|
CharacterSkill sk = skills.get(sb.getName()); |
|
|
|
CharacterSkill sk = skills.get(sb.getName()); |
|
|
|
|
|
|
|
|
|
|
|
if(sk == null && playerCharacter.getRaceID() == 1999) |
|
|
|
|
|
|
|
if(sb.getName().equals("Staff") || sb.getName().equals("Staff Mastery") || sb.getName().equals("Parry")){ |
|
|
|
|
|
|
|
sk = new CharacterSkill(sb,playerCharacter); |
|
|
|
|
|
|
|
DbManager.CharacterSkillQueries.updateDatabase(sk); |
|
|
|
|
|
|
|
DbManager.CharacterSkillQueries.UPDATE_TRAINS(sk); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sk == null) |
|
|
|
if (sk == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|