fix(Scripts/ShadowLabyrinth): Fix Murmur combat bug caused by Suppres… (#16122)
fix(Scripts/ShadowLabyrinth): Fix Murmur combat bug caused by Suppression Blasts hitting npcs in combat with players
This commit is contained in:
@@ -74,6 +74,8 @@ struct boss_murmur : public BossAI
|
|||||||
|
|
||||||
void CastSupressionOOC()
|
void CastSupressionOOC()
|
||||||
{
|
{
|
||||||
|
me->m_Events.CancelEventGroup(GROUP_OOC_CAST);
|
||||||
|
|
||||||
me->m_Events.AddEventAtOffset([this] {
|
me->m_Events.AddEventAtOffset([this] {
|
||||||
if (me->FindNearestCreature(NPC_CABAL_SPELLBINDER, 35.0f))
|
if (me->FindNearestCreature(NPC_CABAL_SPELLBINDER, 35.0f))
|
||||||
{
|
{
|
||||||
@@ -125,8 +127,13 @@ struct boss_murmur : public BossAI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void JustEngagedWith(Unit* /*who*/) override
|
void JustEngagedWith(Unit* who) override
|
||||||
{
|
{
|
||||||
|
if (!who->IsInCombatWith(me))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_JustEngagedWith();
|
_JustEngagedWith();
|
||||||
|
|
||||||
scheduler.Schedule(28s, [this](TaskContext context)
|
scheduler.Schedule(28s, [this](TaskContext context)
|
||||||
|
|||||||
Reference in New Issue
Block a user