From 0758bb5f38758dd8085e18ab6dbddb13b8baf1e3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 3 Sep 2023 19:44:33 -0500 Subject: [PATCH] SkillsBase are now cached when missing for mobs --- src/engine/objects/Mob.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 44420fc3..749b4568 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1709,6 +1709,8 @@ public class Mob extends AbstractIntelligenceAgent { //load mob skill adjustments form mobbase rune if(PowersManager._allRuneSkillAdjusts.containsKey(this.getMobBaseID())) for(RuneSkillAdjustEntry entry : PowersManager._allRuneSkillAdjusts.get(this.getMobBaseID())) { + if(SkillsBase.getFromCache(entry.skill_type) == null) + SkillsBase.putInCache(DbManager.SkillsBaseQueries.GET_BASE_BY_NAME(entry.skill_type)); SkillsBase skillBase = SkillsBase.getFromCache(entry.skill_type); if(skillBase == null) continue;