aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShocker <shocker@freakz.ro>2018-10-13 13:09:20 +0300
committerShocker <shocker@freakz.ro>2018-10-13 13:09:20 +0300
commitaa9e0de0bbf313ca7a0df7ee5de7180256a18d03 (patch)
treed53c77eb432581a3e21dc33f64c599a99944282b /src
parent6325dddb164773a559e12d8d1224078274a84891 (diff)
Core/Spells: Implement PROC_FLAG_ENCOUNTER_START
Diffstat (limited to 'src')
-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: