mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Scripts/SunwellPlateau): Felmyst should cast Noxious Cloud only a… (#21596)
This commit is contained in:
@@ -134,7 +134,7 @@ struct boss_felmyst : public BossAI
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
BossAI::JustEngagedWith(who);
|
||||
me->CastSpell(me, SPELL_NOXIOUS_FUMES, true);
|
||||
|
||||
me->m_Events.AddEventAtOffset([&] {
|
||||
Talk(YELL_BERSERK);
|
||||
DoCastSelf(SPELL_BERSERK, true);
|
||||
@@ -144,7 +144,7 @@ struct boss_felmyst : public BossAI
|
||||
|
||||
Position landPos = who->GetPosition();
|
||||
me->m_Events.AddEventAtOffset([&, landPos] {
|
||||
me->GetMotionMaster()->MovePoint(POINT_GROUND, landPos, false, true);
|
||||
me->GetMotionMaster()->MoveLand(POINT_GROUND, landPos);
|
||||
}, 2s);
|
||||
}
|
||||
|
||||
@@ -168,11 +168,14 @@ struct boss_felmyst : public BossAI
|
||||
|
||||
void MovementInform(uint32 type, uint32 point) override
|
||||
{
|
||||
if (type != POINT_MOTION_TYPE)
|
||||
if (type != EFFECT_MOTION_TYPE && type != POINT_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
if (point == POINT_GROUND)
|
||||
{
|
||||
if (!me->HasAura(SPELL_NOXIOUS_FUMES))
|
||||
DoCastSelf(SPELL_NOXIOUS_FUMES, true);
|
||||
|
||||
me->HandleEmoteCommand(EMOTE_ONESHOT_LAND);
|
||||
me->SetCanFly(false);
|
||||
me->SetDisableGravity(false);
|
||||
|
||||
Reference in New Issue
Block a user