From b142cded72462affb1b726fe7fe63aa3d851c39e Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 27 Mar 2024 20:16:13 -0500 Subject: [PATCH] saetor skills --- src/engine/db/handlers/dbCharacterSkillHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/db/handlers/dbCharacterSkillHandler.java b/src/engine/db/handlers/dbCharacterSkillHandler.java index 5a2cfc2f..f6db2a05 100644 --- a/src/engine/db/handlers/dbCharacterSkillHandler.java +++ b/src/engine/db/handlers/dbCharacterSkillHandler.java @@ -117,19 +117,19 @@ public class dbCharacterSkillHandler extends dbHandlerBase { if (playerCharacter.getRace().getName().equals("Saetor")) { SkillsBase staff = SkillsBase.getFromCache(71438003); - if(staff != null && playerCharacter.getSkills().containsKey(staff.getName()) == false){ + if(staff != null && !characterSkills.containsKey(staff.getName())){ CharacterSkill newSkill = new CharacterSkill(staff,playerCharacter); //staff playerCharacter.getSkills().put(staff.getName(),newSkill); newSkill.updateDatabase(); } SkillsBase staffMastery = SkillsBase.getFromCache(-61022283); - if(staffMastery != null && playerCharacter.getSkills().containsKey(staffMastery.getName()) == false){ + if(staffMastery != null && !characterSkills.containsKey(staffMastery.getName())){ CharacterSkill newSkill = new CharacterSkill(staffMastery,playerCharacter); //staff mastery playerCharacter.getSkills().put(staffMastery.getName(),newSkill); newSkill.updateDatabase(); } SkillsBase parry = SkillsBase.getFromCache(95961104); - if(parry != null && playerCharacter.getSkills().containsKey(parry.getName()) == false){ + if(parry != null && !characterSkills.containsKey(parry.getName())){ CharacterSkill newSkill = new CharacterSkill(parry,playerCharacter); //parry playerCharacter.getSkills().put(parry.getName(),newSkill); newSkill.updateDatabase();