mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Merge pull request #1585
This commit is contained in:
commit
70661a4b1c
@ -968,9 +968,9 @@ namespace MWMechanics
|
||||
float y = roll / std::min(x, 100.f);
|
||||
y *= 0.25f * x;
|
||||
if (magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration)
|
||||
effect.mDuration = static_cast<int>(y);
|
||||
else
|
||||
effect.mDuration = 1;
|
||||
else
|
||||
effect.mDuration = static_cast<int>(y);
|
||||
if (!(magicEffect->mData.mFlags & ESM::MagicEffect::NoMagnitude))
|
||||
{
|
||||
if (!(magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration))
|
||||
|
Loading…
x
Reference in New Issue
Block a user