|
|
@ -560,14 +560,15 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
|
|
Mob mob = (Mob) DbManager.getFromCache(GameObjectType.Mob, id); |
|
|
|
Mob mob = (Mob) DbManager.getFromCache(GameObjectType.Mob, id); |
|
|
|
|
|
|
|
|
|
|
|
if (mob != null) |
|
|
|
if (mob != null) |
|
|
|
return mob; |
|
|
|
return mob; |
|
|
|
|
|
|
|
|
|
|
|
return DbManager.MobQueries.GET_MOB(id); |
|
|
|
return DbManager.MobQueries.GET_MOB(id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Mob getFromCache(int id) { |
|
|
|
public static Mob getFromCache(int id) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (Mob) DbManager.getFromCache(GameObjectType.Mob, id); |
|
|
|
return (Mob) DbManager.getFromCache(GameObjectType.Mob, id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -671,11 +672,8 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
|
|
|
|
|
|
|
|
if (this.agentType.equals(AIAgentType.GUARDMINION)) |
|
|
|
if (this.agentType.equals(AIAgentType.GUARDMINION)) |
|
|
|
return this.guardCaptain.contract.getMobbaseID(); |
|
|
|
return this.guardCaptain.contract.getMobbaseID(); |
|
|
|
|
|
|
|
else |
|
|
|
if (this.mobBase != null) |
|
|
|
|
|
|
|
return this.mobBase.getObjectUUID(); |
|
|
|
return this.mobBase.getObjectUUID(); |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Vector3fImmutable getTrueBindLoc() { |
|
|
|
public Vector3fImmutable getTrueBindLoc() { |
|
|
|