|
|
|
@ -2224,12 +2224,14 @@ public enum PowersManager {
@@ -2224,12 +2224,14 @@ 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 == -1 || type == 0 || UUID == -1 || UUID == 0) {
|
|
|
|
|
// return null;
|
|
|
|
|
// }
|
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return (AbstractWorldObject) DbManager.getObject(GameObjectType.values()[type], UUID); |
|
|
|
|
} |
|
|
|
|