fix(Scripts/Events): Hallow's End Headless Horsemen fly intro (#20366)

manually set move flags
This commit is contained in:
Jelle Meeus
2024-11-02 10:37:40 +01:00
committed by GitHub
parent 0a182b7274
commit 3a705edd5b
2 changed files with 6 additions and 0 deletions

View File

@@ -1091,6 +1091,8 @@ struct boss_headless_horseman : public ScriptedAI
me->ReplaceAllUnitFlags(UNIT_FLAG_NONE);
me->StopMoving();
me->SetDisableGravity(false);
me->SetInCombatWithZone();
inFight = true;
events.ScheduleEvent(EVENT_HORSEMAN_FOLLOW, 500ms);
@@ -1187,6 +1189,7 @@ struct boss_headless_horseman : public ScriptedAI
trigger->CastSpell(trigger, SPELL_EARTH_EXPLOSION, true);
break;
case 3:
me->SetDisableGravity(true);
me->GetMotionMaster()->MovePath(236820, false);
me->CastSpell(me, SPELL_SHAKE_CAMERA_SMALL, true);
player->Say(TALK_PLAYER_FELT_DEATH);