pet debugging
This commit is contained in:
@@ -350,9 +350,12 @@ public enum PowersManager {
|
||||
} else {
|
||||
// get target
|
||||
AbstractWorldObject target = getTarget(msg);
|
||||
if(target == null && msg.getTargetType() == 37 && Mob.dynamic_pets.get(msg.getTargetID()) != null){
|
||||
Mob pet = Mob.dynamic_pets.get(msg.getTargetID());
|
||||
target = pet;
|
||||
}
|
||||
|
||||
if (target == null) {
|
||||
ChatManager.chatSystemInfo(PlayerCharacter.getPlayerCharacter(msg.getSourceID()), "Target Null");
|
||||
return true;
|
||||
}
|
||||
if (!target.isAlive() && target.getObjectType().equals(GameObjectType.Building) == false && msg.getPowerUsedID() != 428589216)
|
||||
|
||||
Reference in New Issue
Block a user