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:
commit
680ae4d89f
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