Core/Spells: Implement PROC_FLAG_ENCOUNTER_START

This commit is contained in:
Shocker
2018-10-13 13:09:20 +03:00
parent 6325dddb16
commit aa9e0de0bb

View File

@@ -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: