From 0679ffcaec7894384cb4ee0023901e3687a5cc13 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 29 Feb 2024 19:17:37 -0600 Subject: [PATCH] pet debugging --- src/engine/gameManager/PowersManager.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 6d27732d..34b53867 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -2224,12 +2224,14 @@ public enum PowersManager { private static AbstractWorldObject getTarget(PerformActionMsg msg) { - //PlayerCharacter pc = PlayerCharacter.getPlayerCharacter(msg.getSourceID()); + PlayerCharacter pc = PlayerCharacter.getPlayerCharacter(msg.getSourceID()); int type = msg.getTargetType(); int UUID = msg.getTargetID(); - //if (type == -1 || type == 0 || UUID == -1 || UUID == 0) { - // return null; - // } + ChatManager.chatSystemInfo(pc,"Mob Type ID: " + GameObjectType.Mob.ordinal()); + ChatManager.chatSystemInfo(pc,"Target Type ID: " + type); + if (type == -1 || type == 0 || UUID == -1 || UUID == 0) { + return null; + } return (AbstractWorldObject) DbManager.getObject(GameObjectType.values()[type], UUID); }