Fix fleeing speed to 66% run speed
This commit is contained in:
1 parent
6bb1623464
commit
ccb00b971b
6 files changed
+14
-25
No files matched your search
@@ -5773,16 +5773,8 @@ bool Unit::AttackStop()
|
||||
|
||||
// reset only at real combat stop
|
||||
if (Creature* creature = ToCreature())
|
||||
{
|
||||
creature->SetNoCallAssistance(false);
|
||||
|
||||
if (creature->HasSearchedAssistance())
|
||||
{
|
||||
creature->SetNoSearchAssistance(false);
|
||||
UpdateSpeed(MOVE_RUN);
|
||||
}
|
||||
}
|
||||
|
||||
SendMeleeAttackStop(victim);
|
||||
|
||||
return true;
|
||||
@@ -9013,10 +9005,6 @@ void Unit::UpdateSpeed(UnitMoveType mtype)
|
||||
|
||||
if (Creature* creature = ToCreature())
|
||||
{
|
||||
// for creature case, we check explicit if mob searched for assistance
|
||||
if (creature->HasSearchedAssistance())
|
||||
speed *= 0.66f; // best guessed value, so this will be 33% reduction. Based off initial speed, mob can then "run", "walk fast" or "walk".
|
||||
|
||||
if (creature->HasUnitTypeMask(UNIT_MASK_MINION) && !creature->IsInCombat())
|
||||
{
|
||||
MovementGenerator* top = creature->GetMotionMaster()->topOrNull();
|
||||
|
||||
Reference in new issue
Block a user