fix(Core/Scripts): fix Razorscale encounter not starting (#25447)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Andrew 2026-04-14 18:54:12 -03:00 committed by GitHub
parent 2a689d7084
commit c97e808070
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,6 +170,7 @@ struct boss_razorscale : public BossAI
CommanderGUID.Clear();
bGroundPhase = false;
flyTimes = 0;
me->SetImmuneToPC(true);
me->SetAnimTier(AnimTier::Fly);
}
@ -610,6 +611,7 @@ public:
if (razorscale->AI())
{
razorscale->SetImmuneToPC(false);
razorscale->AI()->AttackStart(player);
razorscale->GetMotionMaster()->MoveIdle();
razorscale->GetMotionMaster()->MovePoint(POINT_RAZORSCALE_INIT, CORDS_AIR.GetPositionX(), CORDS_AIR.GetPositionY(), CORDS_AIR.GetPositionZ(), FORCED_MOVEMENT_NONE, 0.f, 0.f, false, false, MOTION_SLOT_ACTIVE, AnimTier::Fly);