aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp6
-rw-r--r--src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp
index 72883842491..2ad49885338 100644
--- a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp
+++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp
@@ -143,6 +143,8 @@ public:
HandleDoors(true);
DestroyPortals();
+
+ instance->SetBossState(DATA_NETHERSPITE, NOT_STARTED);
}
void SummonPortals()
@@ -266,12 +268,16 @@ public:
{
HandleDoors(false);
SwitchToPortalPhase();
+
+ instance->SetBossState(DATA_NETHERSPITE, IN_PROGRESS);
}
void JustDied(Unit* /*killer*/) override
{
HandleDoors(true);
DestroyPortals();
+
+ instance->SetBossState(DATA_NETHERSPITE, DONE);
}
void UpdateAI(uint32 diff) override
diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp
index b02bd8fccc0..12ddc35e92e 100644
--- a/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp
+++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp
@@ -248,6 +248,7 @@ public:
positions.push_back(&InfernalPoints[i]);
instance->HandleGameObject(instance->GetGuidData(DATA_GO_NETHER_DOOR), true);
+ instance->SetBossState(DATA_MALCHEZZAR, NOT_STARTED);
}
void KilledUnit(Unit* /*victim*/) override
@@ -268,6 +269,7 @@ public:
positions.push_back(&InfernalPoints[i]);
instance->HandleGameObject(instance->GetGuidData(DATA_GO_NETHER_DOOR), true);
+ instance->SetBossState(DATA_MALCHEZZAR, DONE);
}
void JustEngagedWith(Unit* /*who*/) override
@@ -275,6 +277,7 @@ public:
Talk(SAY_AGGRO);
instance->HandleGameObject(instance->GetGuidData(DATA_GO_NETHER_DOOR), false); // Open the door leading further in
+ instance->SetBossState(DATA_MALCHEZZAR, IN_PROGRESS);
}
void InfernalCleanup()