mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Implement PROC_FLAG_ENCOUNTER_START
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user