forked from mirror/openmw-tes3mp
Set duration of magic effects from ingredients (bug #4261)
This commit is contained in:
parent
9cee439e37
commit
0e04a26ef6
1 changed files with 2 additions and 2 deletions
|
@ -968,9 +968,9 @@ namespace MWMechanics
|
||||||
float y = roll / std::min(x, 100.f);
|
float y = roll / std::min(x, 100.f);
|
||||||
y *= 0.25f * x;
|
y *= 0.25f * x;
|
||||||
if (magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration)
|
if (magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration)
|
||||||
effect.mDuration = static_cast<int>(y);
|
|
||||||
else
|
|
||||||
effect.mDuration = 1;
|
effect.mDuration = 1;
|
||||||
|
else
|
||||||
|
effect.mDuration = static_cast<int>(y);
|
||||||
if (!(magicEffect->mData.mFlags & ESM::MagicEffect::NoMagnitude))
|
if (!(magicEffect->mData.mFlags & ESM::MagicEffect::NoMagnitude))
|
||||||
{
|
{
|
||||||
if (!(magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration))
|
if (!(magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration))
|
||||||
|
|
Loading…
Reference in a new issue