1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-20 21:41:35 +00:00

Merge pull request #994 from MiroslavR/no-scroll-stacking

Don't stack effects for scrolls of the same type
This commit is contained in:
scrawl 2016-07-10 05:45:42 +02:00 committed by GitHub
commit 251ba041f3

View file

@ -696,7 +696,7 @@ namespace MWMechanics
const ESM::Enchantment* enchantment = MWBase::Environment::get().getWorld()->getStore().get<ESM::Enchantment>().find(enchantmentName);
mStack = (enchantment->mData.mType == ESM::Enchantment::CastOnce);
mStack = false;
// Check if there's enough charge left
if (enchantment->mData.mType == ESM::Enchantment::WhenUsed || enchantment->mData.mType == ESM::Enchantment::WhenStrikes)