Browse Source

pet buff trouble shooting

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
02a78d538c
  1. 11
      src/engine/gameManager/PowersManager.java

11
src/engine/gameManager/PowersManager.java

@ -2224,15 +2224,12 @@ public enum PowersManager { @@ -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);
}

Loading…
Cancel
Save