From 2462cc13ddcb8db0e2fd58f6ce9b48c7ac2d6aa5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 8 Feb 2023 20:09:56 -0600 Subject: [PATCH] guard static power load correct placement --- src/engine/objects/Mob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index fc52504c..9dfcca5c 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -2227,8 +2227,8 @@ public class Mob extends AbstractIntelligenceAgent { //load guards powers ArrayList mobbases = DbManager.MobBaseQueries.GET_ALL_MOBBASES(); for(MobBase mb : mobbases){ - if(this.getName().contains(mb.getFirstName())){ - mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mb.getObjectUUID()); + if(this.getNameOverride().contains(mb.getFirstName())){ + this.mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mb.getObjectUUID()); } } }