mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 04:14:05 +00:00
Purge blight should not remove corprus
This commit is contained in:
parent
96e7ff666d
commit
26732bc228
@ -175,7 +175,7 @@ namespace MWMechanics
|
||||
const ESM::Spell *spell =
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first);
|
||||
|
||||
if (spell->mData.mType == ESM::Spell::ST_Blight)
|
||||
if (spell->mData.mType == ESM::Spell::ST_Blight && !hasCorprusEffect(spell))
|
||||
mSpells.erase(iter++);
|
||||
else
|
||||
++iter;
|
||||
@ -189,7 +189,7 @@ namespace MWMechanics
|
||||
const ESM::Spell *spell =
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first);
|
||||
|
||||
if (Misc::StringUtils::ciEqual(spell->mId, "corprus"))
|
||||
if (hasCorprusEffect(spell))
|
||||
mSpells.erase(iter++);
|
||||
else
|
||||
++iter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user