epic encounter after clearing a stronghold

This commit is contained in:
2024-07-09 20:28:56 -05:00
parent 3230cd53e1
commit fb0790a733
3 changed files with 8 additions and 12 deletions
-2
View File
@@ -66,8 +66,6 @@ public class Mine extends AbstractGameObject {
public ArrayList<Mob> strongholdMobs;
public HashMap<Integer,Integer> oldBuildings;
public Mob epicEncounter = null;
/**
* ResultSet Constructor
*/
+6 -6
View File
@@ -1229,6 +1229,12 @@ public class Mob extends AbstractIntelligenceAgent {
@Override
public void killCharacter(AbstractCharacter attacker) {
if(this.StrongholdGuardian || this.StrongholdCommander) {
ChatManager.chatSystemChannel(this.parentZone.getParent().getName() + "'s Stronghold Is Under Attack!");
StrongholdManager.CheckToEndStronghold(this.stronghold);
}
if(this.StrongholdEpic)
StrongholdManager.EndStronghold(this.stronghold);
this.stopMovement(this.getMovementLoc());
@@ -1423,12 +1429,6 @@ public class Mob extends AbstractIntelligenceAgent {
WorldGrid.RemoveWorldObject(this);
this.charItemManager.clearInventory();
if(this.StrongholdGuardian || this.StrongholdCommander) {
ChatManager.chatSystemChannel(this.parentZone.getParent().getName() + "'s Stronghold Is Under Attack!");
StrongholdManager.CheckToEndStronghold(this.stronghold);
}
if(this.StrongholdEpic)
StrongholdManager.EndStronghold(this.stronghold);
}
@Override