diff options
| author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-01-01 16:28:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-01 16:28:33 +0100 |
| commit | 4ccf01de3947f50629c20192da3f99cb8c693b35 (patch) | |
| tree | 4414d89234ddfb50e396224c29a42768ae433778 /src/server/game/Entities/Unit | |
| parent | 7fb74326205acbc5c0fa6b2aa9731d891e788d64 (diff) | |
Fix fleeing speed to 66% run speed (#24025)
* Core/Movement: Fix fleeing speed to 66% run speed
Fix fleeing speed to 66% run speed until the creature starts returning home
* Fix build
* Don't check speed type
* Don't apply speed reduction twice
* Fix no-pch (1st try)
* Make sure every spell focus is interrupted when seeking assistance
Diffstat (limited to 'src/server/game/Entities/Unit')
| -rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index aac027daab7..aba659b93a0 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -5573,12 +5573,6 @@ bool Unit::AttackStop() if (Creature* creature = ToCreature()) { creature->SetNoCallAssistance(false); - - if (creature->HasSearchedAssistance()) - { - creature->SetNoSearchAssistance(false); - UpdateSpeed(MOVE_RUN); - } } SendMeleeAttackStop(victim); @@ -8488,10 +8482,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()) { if (GetMotionMaster()->GetCurrentMovementGeneratorType() == FOLLOW_MOTION_TYPE) |
