mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 11:39:41 +00:00
Purge blight should not remove corprus
This commit is contained in:
parent
96e7ff666d
commit
26732bc228
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ namespace MWMechanics
|
||||||
const ESM::Spell *spell =
|
const ESM::Spell *spell =
|
||||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first);
|
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++);
|
mSpells.erase(iter++);
|
||||||
else
|
else
|
||||||
++iter;
|
++iter;
|
||||||
|
@ -189,7 +189,7 @@ namespace MWMechanics
|
||||||
const ESM::Spell *spell =
|
const ESM::Spell *spell =
|
||||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first);
|
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first);
|
||||||
|
|
||||||
if (Misc::StringUtils::ciEqual(spell->mId, "corprus"))
|
if (hasCorprusEffect(spell))
|
||||||
mSpells.erase(iter++);
|
mSpells.erase(iter++);
|
||||||
else
|
else
|
||||||
++iter;
|
++iter;
|
||||||
|
|
Loading…
Reference in a new issue