diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 665fefb6..42885f28 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -2225,17 +2225,14 @@ public enum PowersManager { private static AbstractWorldObject getTarget(PerformActionMsg msg) { PlayerCharacter pc = PlayerCharacter.getPlayerCharacter(msg.getSourceID()); - ChatManager.chatSystemInfo(pc,"Target Type = " + msg.getTargetType()); - ChatManager.chatSystemInfo(pc,"Target ID = " + msg.getTargetID()); - ChatManager.chatSystemInfo(pc,"Power ID = " + msg.getPowerUsedID()); - PowersBase pb = PowersManager.getPowerByToken(msg.getPowerUsedID()); - ChatManager.chatSystemInfo(pc,"Power Name = " + pb.getName()); - ChatManager.chatSystemInfo(pc,"Power Type = " + pb.getPowerCategoryType()); int type = msg.getTargetType(); int UUID = msg.getTargetID(); - - if (type == -1 || type == 0 || UUID == -1 || UUID == 0) + 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; + } return (AbstractWorldObject) DbManager.getObject(GameObjectType.values()[type], UUID); }