mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
feat(Core/Scripting): Implement OnBeforeSetBossState (#14891)
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "Opcodes.h"
|
||||
#include "Pet.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "Spell.h"
|
||||
#include "WorldSession.h"
|
||||
|
||||
@@ -307,6 +308,7 @@ bool InstanceScript::SetBossState(uint32 id, EncounterState state)
|
||||
if (id < bosses.size())
|
||||
{
|
||||
BossInfo* bossInfo = &bosses[id];
|
||||
sScriptMgr->OnBeforeSetBossState(id, state, bossInfo->state, instance);
|
||||
if (bossInfo->state == TO_BE_DECIDED) // loading
|
||||
{
|
||||
bossInfo->state = state;
|
||||
|
||||
Reference in New Issue
Block a user