mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 22:53:54 +00:00
Exception for enchanting with Azura Star
This commit is contained in:
parent
369cf0b4ca
commit
7b7d3353a6
1 changed files with 6 additions and 1 deletions
|
@ -54,6 +54,11 @@ namespace MWMechanics
|
|||
{
|
||||
ESM::Enchantment enchantment;
|
||||
enchantment.mData.mCharge = getGemCharge();
|
||||
|
||||
//Exception for Azura Star, it's not destroyed after enchanting
|
||||
if(mSoulGemPtr.get<ESM::Miscellaneous>()->mBase->mId=="Misc_SoulGem_Azura")
|
||||
mSoulGemPtr.getCellRef().mSoul="";
|
||||
else
|
||||
mSoulGemPtr.getRefData().setCount (mSoulGemPtr.getRefData().getCount()-1);
|
||||
|
||||
if(mSelfEnchanting)
|
||||
|
|
Loading…
Reference in a new issue