mirror of
https://github.com/OpenMW/openmw.git
synced 2026-02-11 15:32:05 +00:00
Only ignore temporary effects based on their time left
This commit is contained in:
parent
3ac4a744a8
commit
e0f636d379
1 changed files with 2 additions and 1 deletions
|
|
@ -381,7 +381,8 @@ namespace MWMechanics
|
|||
std::optional<ActiveSpellParams> reflected;
|
||||
for (auto it = spellIt->mEffects.begin(); it != spellIt->mEffects.end();)
|
||||
{
|
||||
if (it->mFlags & ESM::ActiveEffect::Flag_Remove && it->mTimeLeft <= 0.f)
|
||||
if (it->mFlags & ESM::ActiveEffect::Flag_Remove && it->mTimeLeft <= 0.f
|
||||
&& spellIt->hasFlag(ESM::ActiveSpells::Flag_Temporary))
|
||||
{
|
||||
++it;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue