Skip to content

Commit

Permalink
fix speed redution
Browse files Browse the repository at this point in the history
  • Loading branch information
beats-dh committed May 3, 2023
1 parent 1022127 commit 4f909bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/creatures/combat/functions/condition_speed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bool ConditionSpeed::startCondition(Creature* creature) {
speedDelta = speedDelta - baseSpeed;
}

if (speedDelta < 40 - baseSpeed) {
if (conditionType == CONDITION_PARALYZE && speedDelta < baseSpeed - 40) {
speedDelta = 40 - baseSpeed;
}
}
Expand Down Expand Up @@ -139,7 +139,7 @@ void ConditionSpeed::addCondition(Creature* creature, const Condition* addCondit
speedDelta = speedDelta - baseSpeed;
}

if (speedDelta < baseSpeed - 40) {
if (conditionType == CONDITION_PARALYZE && speedDelta < baseSpeed - 40) {
speedDelta = 40 - baseSpeed;
}
}
Expand Down

0 comments on commit 4f909bb

Please sign in to comment.