fix(Core/Unit): rework Walk/Run mode (#22988)
Co-authored-by: sudlud <sudlud@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -359,7 +359,7 @@ public:
|
||||
case 0:
|
||||
Talk(SAY_TEXT5);
|
||||
HandleGameObject(DATA_ARENA4, false);
|
||||
Start(false, false);
|
||||
Start(false);
|
||||
eventTimer = 0;
|
||||
break;
|
||||
case 1:
|
||||
@@ -604,7 +604,7 @@ public:
|
||||
creature->CastSpell(creature, SPELL_DRUNKEN_RAGE, false);
|
||||
|
||||
if (npc_escortAI* escortAI = CAST_AI(npc_rocknot::npc_rocknotAI, creature->AI()))
|
||||
escortAI->Start(false, false);
|
||||
escortAI->Start(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -77,7 +77,9 @@ struct boss_quartermaster_zigris : public BossAI
|
||||
{
|
||||
if (me->IsWithinMeleeRange(me->GetVictim()))
|
||||
{
|
||||
me->GetMotionMaster()->MoveBackwards(me->GetVictim(), 10.0f);
|
||||
float x, y, z;
|
||||
me->GetNearPoint(me->GetVictim(), x, y, z, me->GetVictim()->GetBoundaryRadius(), 10.0f, me->GetAngle(me->GetVictim()));
|
||||
me->GetMotionMaster()->MovePoint(0, x, y, z, FORCED_MOVEMENT_RUN); // TODO: Implement generic distancing on npc on target root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -430,7 +430,7 @@ public:
|
||||
Talk(SAY_RAG_SUM_2);
|
||||
// Next event will get triggered in MovementInform
|
||||
me->SetWalk(true);
|
||||
me->GetMotionMaster()->MovePoint(POINT_RAGNAROS_SUMMON, MajordomoMoveRagPos, true, false);
|
||||
me->GetMotionMaster()->MovePoint(POINT_RAGNAROS_SUMMON, MajordomoMoveRagPos, FORCED_MOVEMENT_NONE, 0.f, true, false);
|
||||
break;
|
||||
}
|
||||
case EVENT_RAGNAROS_SUMMON_2:
|
||||
|
||||
Reference in New Issue
Block a user