forked from MagicBane/Server
SkillsBase are now cached when missing for mobs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user