Browse Source

pet buff trouble shooting

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
9e74954422
  1. 13
      src/engine/gameManager/PowersManager.java

13
src/engine/gameManager/PowersManager.java

@ -2225,17 +2225,14 @@ public enum PowersManager { @@ -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);
}

Loading…
Cancel
Save