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; }