Browse Source

pet debugging

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
50fb0d39c5
  1. 11
      src/engine/gameManager/PowersManager.java

11
src/engine/gameManager/PowersManager.java

@ -349,12 +349,14 @@ public enum PowersManager { @@ -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 { @@ -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;
}

Loading…
Cancel
Save