aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Instances/InstanceScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Instances/InstanceScript.cpp')
-rw-r--r--src/server/game/Instances/InstanceScript.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp
index 621f2a18e28..2443ba4c3d9 100644
--- a/src/server/game/Instances/InstanceScript.cpp
+++ b/src/server/game/Instances/InstanceScript.cpp
@@ -41,6 +41,7 @@
#include "WorldSession.h"
#include <sstream>
#include <cstdarg>
+#include "SpellMgr.h"
BossBoundaryData::~BossBoundaryData()
{
@@ -338,6 +339,13 @@ bool InstanceScript::SetBossState(uint32 id, EncounterState state)
uint32 resInterval = GetCombatResurrectionChargeInterval();
InitializeCombatResurrections(1, resInterval);
SendEncounterStart(1, 9, resInterval, resInterval);
+
+ Map::PlayerList const &playerList = instance->GetPlayers();
+ if (!playerList.isEmpty())
+ for (Map::PlayerList::const_iterator i = playerList.begin(); i != playerList.end(); ++i)
+ if (Player* player = i->GetSource())
+ if (player->IsAlive())
+ player->ProcSkillsAndAuras(nullptr, PROC_FLAG_ENCOUNTER_START, PROC_FLAG_NONE, PROC_SPELL_TYPE_MASK_ALL, PROC_SPELL_PHASE_NONE, PROC_HIT_NONE, nullptr, nullptr, nullptr);
break;
}
case FAIL: