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:
parent
f8cce45e8a
commit
2e98e7c42a
1 changed files with 8 additions and 1 deletions
|
|
@ -74,6 +74,8 @@ struct boss_murmur : public BossAI
|
|||
|
||||
void CastSupressionOOC()
|
||||
{
|
||||
me->m_Events.CancelEventGroup(GROUP_OOC_CAST);
|
||||
|
||||
me->m_Events.AddEventAtOffset([this] {
|
||||
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();
|
||||
|
||||
scheduler.Schedule(28s, [this](TaskContext context)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue