From 50fb0d39c5622c6316246ec2fb94d4f95f51079e Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 29 Feb 2024 19:38:21 -0600 Subject: [PATCH] pet debugging --- src/engine/gameManager/PowersManager.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 8d4f05ff..9f685383 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -349,12 +349,14 @@ public enum PowersManager { } } else { // get target - AbstractWorldObject target = getTarget(msg); - if(target == null && msg.getTargetType() == 37 && Mob.dynamic_pets.get(msg.getTargetID()) != null){ + AbstractWorldObject target; + if(msg.getTargetType() == 37 && Mob.dynamic_pets.get(msg.getTargetID()) != null){ Mob pet = Mob.dynamic_pets.get(msg.getTargetID()); target = pet; + }else{ + target = getTarget(msg); } - + ChatManager.chatSystemInfo(PlayerCharacter.getPlayerCharacter(msg.getSourceID()), "Target Acquired: " + target.getName()); if (target == null) { return true; } @@ -2223,11 +2225,8 @@ public enum PowersManager { private static AbstractWorldObject getTarget(PerformActionMsg msg) { - PlayerCharacter pc = PlayerCharacter.getPlayerCharacter(msg.getSourceID()); int type = msg.getTargetType(); int UUID = msg.getTargetID(); - 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; }