Merge pull request #2310 from akortunov/enchant

Correct the Enchant skill progress
pull/2006/head
Alexei Dobrohotov 6 years ago committed by GitHub
commit c57958bf4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,6 +55,7 @@
Bug #4942: Hand-to-Hand attack type is chosen randomly when "always use best attack" is turned off
Bug #4947: Player character doesn't use lip animation
Bug #4948: Footstep sounds while levitating on ground level
Bug #4963: Enchant skill progress is incorrect
Feature #2229: Improve pathfinding AI
Feature #3442: Default values for fallbacks from ini file
Feature #3610: Option to invert X axis

@ -864,16 +864,15 @@ namespace MWMechanics
if (mCaster == getPlayer())
mCaster.getClass().skillUsageSucceeded (mCaster, ESM::Skill::Enchant, 1);
}
if (enchantment->mData.mType == ESM::Enchantment::CastOnce && !godmode)
else if (enchantment->mData.mType == ESM::Enchantment::CastOnce)
{
item.getContainerStore()->remove(item, 1, mCaster);
if (!godmode)
item.getContainerStore()->remove(item, 1, mCaster);
}
else if (enchantment->mData.mType != ESM::Enchantment::WhenStrikes)
else if (enchantment->mData.mType == ESM::Enchantment::WhenStrikes)
{
if (mCaster == getPlayer())
{
mCaster.getClass().skillUsageSucceeded (mCaster, ESM::Skill::Enchant, 3);
}
}
inflict(mCaster, mCaster, enchantment->mEffects, ESM::RT_Self);

Loading…
Cancel
Save