1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Don't set the enchanted item in HUD for "WhenStrikes" enchantments

This commit is contained in:
scrawl 2013-11-23 22:48:56 +01:00
parent f3e89e9168
commit 4aa9f3bcef

View File

@ -312,7 +312,7 @@ namespace MWMechanics
}
if (enchantment->mData.mType == ESM::Enchantment::CastOnce)
item.getContainerStore()->remove(item, 1, mCaster);
else
else if (enchantment->mData.mType != ESM::Enchantment::WhenStrikes)
{
if (mCaster.getRefData().getHandle() == "player")
MWBase::Environment::get().getWindowManager()->setSelectedEnchantItem(item); // Set again to show the modified charge