forked from MagicBane/Server
Minions loaded for guard captain
This commit is contained in:
@@ -1677,10 +1677,13 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
if (this.getMobBase().enemy.size() > 0)
|
||||
this.enemy.addAll(this.getMobBase().enemy);
|
||||
}
|
||||
|
||||
// Load skills, powers and effects
|
||||
|
||||
NPCManager.applyMobbaseEffects(this);
|
||||
NPCManager.applyEquipmentResists(this);
|
||||
NPCManager.applyMobbaseSkill(this);
|
||||
NPCManager.applyRuneSkills(this,this.getMobBaseID());
|
||||
NPCManager.applyRuneSkills(this, this.getMobBaseID());
|
||||
this.recalculateStats();
|
||||
this.setHealth(this.healthMax);
|
||||
|
||||
@@ -1695,6 +1698,11 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
if (this.agentType.equals(AIAgentType.MOBILE))
|
||||
NPCManager.AssignPatrolPoints(this);
|
||||
|
||||
// Load minions for guard captain.
|
||||
|
||||
if (this.agentType.equals(AIAgentType.GUARDCAPTAIN))
|
||||
DbManager.MobQueries.LOAD_GUARD_MINIONS(this);
|
||||
|
||||
this.deathTime = 0;
|
||||
}
|
||||
|
||||
@@ -1732,9 +1740,9 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
if (!ac.getObjectType().equals(GameObjectType.PlayerCharacter))
|
||||
return;
|
||||
|
||||
if (this.getCombatTarget() == null) {
|
||||
if (this.getCombatTarget() == null)
|
||||
this.setCombatTarget(ac);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void setRank(int newRank) {
|
||||
|
||||
Reference in New Issue
Block a user