|
|
@ -1633,10 +1633,10 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
this.mana.set(this.manaMax); |
|
|
|
this.mana.set(this.manaMax); |
|
|
|
this.stamina.set(this.staminaMax); |
|
|
|
this.stamina.set(this.staminaMax); |
|
|
|
|
|
|
|
|
|
|
|
// Don't override level for guard minions
|
|
|
|
// Don't override level for guard minions or pets
|
|
|
|
|
|
|
|
|
|
|
|
if (this.contract == null) |
|
|
|
if (this.contract == null) |
|
|
|
if (!this.behaviourType.equals(MobBehaviourType.GuardMinion) && !this.agentType.equals(AIAgentType.PET)) |
|
|
|
if (!this.agentType.equals(AIAgentType.GUARD) && !this.agentType.equals(AIAgentType.PET)) |
|
|
|
this.level = (short) this.mobBase.getLevel(); |
|
|
|
this.level = (short) this.mobBase.getLevel(); |
|
|
|
|
|
|
|
|
|
|
|
//set bonuses
|
|
|
|
//set bonuses
|
|
|
@ -1667,7 +1667,7 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
|
|
|
|
|
|
|
|
// Do not adjust a pet's bindloc.
|
|
|
|
// Do not adjust a pet's bindloc.
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.behaviourType.equals(MobBehaviourType.Pet1)) |
|
|
|
if (!this.agentType.equals(AIAgentType.PET)) |
|
|
|
this.bindLoc = this.parentZone.getLoc().add(this.bindLoc); |
|
|
|
this.bindLoc = this.parentZone.getLoc().add(this.bindLoc); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|