From 02a78d538c0a4ea95d5dcfaf8542d8ccb8b5bac7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 28 Feb 2024 21:24:57 -0600 Subject: [PATCH] pet buff trouble shooting --- src/engine/gameManager/PowersManager.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 42885f28..6d27732d 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -2224,15 +2224,12 @@ 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 == 37){ - AbstractWorldObject pet = (AbstractWorldObject) DbManager.getObject(GameObjectType.values()[type], UUID); - ChatManager.chatSystemInfo(pc,"SELECTED PET: " + pet.getName()); - } else if (type == -1 || type == 0 || UUID == -1 || UUID == 0) { - return null; - } + //if (type == -1 || type == 0 || UUID == -1 || UUID == 0) { + // return null; + // } return (AbstractWorldObject) DbManager.getObject(GameObjectType.values()[type], UUID); }