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:
killerwife
2025-10-14 22:54:19 +02:00
committed by GitHub
parent c28f635408
commit 10d5a3c553
104 changed files with 373 additions and 362 deletions

View File

@@ -607,7 +607,8 @@ public:
break;
}
Start(false, true);
me->SetWalk(false);
Start(false);
uiWaypoint = uiType;
}

View File

@@ -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);

View File

@@ -549,7 +549,8 @@ public:
return;
}
Start(false, true);
me->SetWalk(false);
Start(false);
}
void DamageTaken(Unit*, uint32& damage, DamageEffectType, SpellSchoolMask) override