|
|
@ -163,7 +163,9 @@ public abstract class AbstractIntelligenceAgent extends AbstractCharacter { |
|
|
|
this.setCombatTarget(null); |
|
|
|
this.setCombatTarget(null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//clear owner
|
|
|
|
// clear owner and set not alive
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.isAlive.set(false); |
|
|
|
|
|
|
|
|
|
|
|
PlayerCharacter owner = (PlayerCharacter) this.guardCaptain; |
|
|
|
PlayerCharacter owner = (PlayerCharacter) this.guardCaptain; |
|
|
|
|
|
|
|
|
|
|
@ -181,7 +183,7 @@ public abstract class AbstractIntelligenceAgent extends AbstractCharacter { |
|
|
|
owner.setPet(null); |
|
|
|
owner.setPet(null); |
|
|
|
|
|
|
|
|
|
|
|
if (this.getObjectType().equals(GameObjectType.Mob)) |
|
|
|
if (this.getObjectType().equals(GameObjectType.Mob)) |
|
|
|
((Mob) this).guardCaptain = null; |
|
|
|
this.guardCaptain = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|