forked from MagicBane/Server
Patrol points are reset each patrol.
This commit is contained in:
@@ -1691,15 +1691,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
if (this.agentType.equals(AIAgentType.MOBILE))
|
||||
NPCManager.AssignPatrolPoints(this);
|
||||
|
||||
if (this.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)) {
|
||||
|
||||
Building barracks = this.building;
|
||||
|
||||
if (barracks != null && barracks.patrolPoints != null && !barracks.getPatrolPoints().isEmpty()) {
|
||||
this.patrolPoints = barracks.patrolPoints;
|
||||
}
|
||||
}
|
||||
|
||||
this.deathTime = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user