Skip to content

Commit

Permalink
Fix wounded slowdown applying to walk speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Dec 19, 2024
1 parent 20cb947 commit f936d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Objects/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7219,7 +7219,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced, float ratio)
speed *= DEFAULT_NPC_RUN_SPEED_RATE; // normalized player pet runspeed

// Speed reduction at low health percentages
if (!pCreature->IsPet() && !pCreature->IsWorldBoss() && !pCreature->HasStaticFlag(CREATURE_STATIC_FLAG_2_NO_WOUNDED_SLOWDOWN))
if (mtype == MOVE_RUN && !pCreature->IsPet() && !pCreature->IsWorldBoss() && !pCreature->HasStaticFlag(CREATURE_STATIC_FLAG_2_NO_WOUNDED_SLOWDOWN))
{
if (HasAuraState(AURA_STATE_HEALTHLESS_5_PERCENT))
speed *= SPEED_REDUCTION_HP_5;
Expand Down

0 comments on commit f936d42

Please sign in to comment.