mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Allow walk when chasing (#23069)
This commit is contained in:
committed by
Giacomo Pozzoni
parent
47e1816bf7
commit
c2f2db08aa
@@ -670,9 +670,8 @@ struct npc_dark_rider_of_acherus : public ScriptedAI
|
||||
{
|
||||
case EVENT_START_MOVING:
|
||||
me->SetTarget(_horseGUID);
|
||||
me->SetWalk(true);
|
||||
if (Creature* horse = ObjectAccessor::GetCreature(*me, _horseGUID))
|
||||
me->GetMotionMaster()->MoveChase(horse);
|
||||
me->GetMotionMaster()->MoveChase(horse, {}, {}, true);
|
||||
_events.ScheduleEvent(EVENT_DESPAWN_HORSE, 5s);
|
||||
break;
|
||||
case EVENT_DESPAWN_HORSE:
|
||||
|
||||
@@ -908,6 +908,15 @@ class boss_thaladred_the_darkener : public CreatureScript
|
||||
advisorbase_ai::Reset();
|
||||
}
|
||||
|
||||
void AttackStart(Unit* who) override
|
||||
{
|
||||
if (!who || _inFakeDeath || me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
|
||||
return;
|
||||
|
||||
if (me->Attack(who, true))
|
||||
me->GetMotionMaster()->MoveChase(who, {}, {}, true);
|
||||
}
|
||||
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
Talk(SAY_THALADRED_AGGRO);
|
||||
|
||||
Reference in New Issue
Block a user