mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-10 03:00:28 +00:00
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:
@@ -607,7 +607,8 @@ public:
|
||||
break;
|
||||
}
|
||||
|
||||
Start(false, true);
|
||||
me->SetWalk(false);
|
||||
Start(false);
|
||||
uiWaypoint = uiType;
|
||||
}
|
||||
|
||||
|
||||
@@ -339,7 +339,8 @@ public:
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
Start(false, true, ObjectGuid::Empty, nullptr);
|
||||
me->SetWalk(false);
|
||||
Start(false, ObjectGuid::Empty, nullptr);
|
||||
SetDespawnAtEnd(true);
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
me->SetImmuneToAll(true);
|
||||
|
||||
@@ -549,7 +549,8 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
Start(false, true);
|
||||
me->SetWalk(false);
|
||||
Start(false);
|
||||
}
|
||||
|
||||
void DamageTaken(Unit*, uint32& damage, DamageEffectType, SpellSchoolMask) override
|
||||
|
||||
Reference in New Issue
Block a user