Skip to content

Commit

Permalink
Merge branch 'drainfatigue' into 'master'
Browse files Browse the repository at this point in the history
Uncap Drain Fatigue again (bug #7573)

Closes #7573

See merge request OpenMW/openmw!3414
  • Loading branch information
psi29a committed Sep 11, 2023
2 parents 39a209c + 0f2e5f9 commit d87db1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
Bug #7505: Distant terrain does not support sample size greater than cell size
Bug #7553: Faction reaction loading is incorrect
Bug #7557: Terrain::ChunkManager::createChunk is called twice for the same position, lod on initial loading
Bug #7573: Drain Fatigue can't bring fatigue below zero by default
Feature #3537: Shader-based water ripples
Feature #5492: Let rain and snow collide with statics
Feature #6149: Dehardcode Lua API_REVISION
Expand Down
4 changes: 2 additions & 2 deletions apps/openmw/mwmechanics/spelleffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@ namespace MWMechanics
if (!godmode)
{
int index = effect.mEffectId - ESM::MagicEffect::DrainHealth;
adjustDynamicStat(
target, index, -effect.mMagnitude, Settings::game().mUncappedDamageFatigue && index == 2);
// Unlike Absorb and Damage effects Drain effects can bring stats below zero
adjustDynamicStat(target, index, -effect.mMagnitude, true);
if (index == 0)
receivedMagicDamage = affectedHealth = true;
}
Expand Down

0 comments on commit d87db1d

Please sign in to comment.