mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 05:36:23 +00:00
Merge branch 'master' into Playerbot
This commit is contained in:
@@ -125,11 +125,12 @@ struct boss_murmur : public BossAI
|
||||
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
if (!who->IsInCombatWith(me))
|
||||
// Boss engages mobs during roleplay, this checks prevents it from setting the zone in combat before players engage it.
|
||||
if (who->IsPlayer() || who->IsPet() || who->IsGuardian())
|
||||
{
|
||||
return;
|
||||
_JustEngagedWith();
|
||||
}
|
||||
_JustEngagedWith();
|
||||
|
||||
scheduler.Schedule(28s, [this](TaskContext context)
|
||||
{
|
||||
Talk(EMOTE_SONIC_BOOM);
|
||||
@@ -186,6 +187,7 @@ struct boss_murmur : public BossAI
|
||||
context.Repeat(3650ms, 9150ms);
|
||||
});
|
||||
}
|
||||
|
||||
me->m_Events.CancelEventGroup(GROUP_OOC_CAST);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -37,16 +37,16 @@ struct npc_underbat : public ScriptedAI
|
||||
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
_scheduler.Schedule(2200ms, 6900ms, [this](TaskContext context)
|
||||
_scheduler.Schedule(1200ms, 12500ms, [this](TaskContext context)
|
||||
{
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, [&](Unit* u)
|
||||
{
|
||||
return u->IsAlive() && !u->IsPet() && me->IsWithinCombatRange(u, 20.f) && !me->HasInArc(M_PI, u);
|
||||
return u->IsAlive() && !u->IsPet() && me->IsWithinCombatRange(u, 5.0f) && !me->HasInArc(M_PI, u);
|
||||
}))
|
||||
{
|
||||
DoCast(target, SPELL_TENTACLE_LASH);
|
||||
}
|
||||
context.Repeat(5700ms, 9700ms);
|
||||
context.Repeat(1200ms, 12500ms);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user