forked from MagicBane/Server
Workorders cleared with hireling removal.
This commit is contained in:
@@ -154,9 +154,11 @@ public abstract class AbstractIntelligenceAgent extends AbstractCharacter {
|
||||
|
||||
WorldGrid.RemoveWorldObject(this);
|
||||
|
||||
if (this.getObjectType() == GameObjectType.Mob)
|
||||
if (((Mob) this).getParentZone() != null)
|
||||
if (this.getObjectType() == GameObjectType.Mob) {
|
||||
if (((Mob) this).getParentZone() != null) {
|
||||
((Mob) this).getParentZone().zoneMobSet.remove(this);
|
||||
}
|
||||
}
|
||||
|
||||
} else { //revert charmed pet
|
||||
this.agentType = mbEnums.AIAgentType.MOBILE;
|
||||
|
||||
Reference in New Issue
Block a user