1
0
Fork 0
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:
Evil Eye 2026-01-31 11:46:18 +01:00
parent 3ac4a744a8
commit e0f636d379

View file

@ -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;