1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 19:09:49 +00:00

Purge blight should not remove corprus

This commit is contained in:
MiroslavR 2014-08-19 22:13:37 +02:00
parent 96e7ff666d
commit 26732bc228

View file

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