1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-02-11 13:08:30 +00:00

Merge branch 'healplz' into 'master'

Only ignore temporary effects based on their time left

See merge request OpenMW/openmw!5137
This commit is contained in:
Alexei Kotov 2026-02-05 14:28:57 +03:00
commit 680ae4d89f

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;