From 84c022a39b56d04042ee0c641f7a2ab5ef7a9414 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 13 Sep 2024 17:54:50 -0500 Subject: [PATCH] saetor trains --- src/engine/net/client/msg/TrainMsg.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/msg/TrainMsg.java b/src/engine/net/client/msg/TrainMsg.java index 1100c995..18ff38ba 100644 --- a/src/engine/net/client/msg/TrainMsg.java +++ b/src/engine/net/client/msg/TrainMsg.java @@ -92,9 +92,10 @@ public class TrainMsg extends ClientNetMsg { CharacterSkill sk = skills.get(sb.getName()); - if(playerCharacter.getRaceID() == 1999) + 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); } if (sk == null)