make stronghold mobs aggro

This commit is contained in:
2024-07-07 21:00:32 -05:00
parent 4c21439847
commit 51c98746c4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -688,7 +688,7 @@ public class Mine extends AbstractGameObject {
guard.healthMax *= 2;
guard.setHealth(guard.healthMax);
guard.spawnTime = 1000000000;
guard.runAfterLoad();
guard.BehaviourType = Enum.MobBehaviourType.Aggro;
InterestManager.setObjectDirty(guard);
this.strongholdMobs.add(guard);
LootManager.GenerateStrongholdLoot(guard,false);
@@ -701,7 +701,7 @@ public class Mine extends AbstractGameObject {
commander.healthMax *= 2;
commander.setHealth(commander.healthMax);
commander.spawnTime = 1000000000;
commander.runAfterLoad();
commander.BehaviourType = Enum.MobBehaviourType.Aggro;
InterestManager.setObjectDirty(commander);
this.strongholdMobs.add(commander);
LootManager.GenerateStrongholdLoot(commander,true);