forked from mirror/openmw-tes3mp
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,7 +54,12 @@ namespace MWMechanics
|
|||
{
|
||||
ESM::Enchantment enchantment;
|
||||
enchantment.mData.mCharge = getGemCharge();
|
||||
mSoulGemPtr.getRefData().setCount (mSoulGemPtr.getRefData().getCount()-1);
|
||||
|
||||
//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