mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 21:40:03 +00:00
Correct the Enchant skill progress (bug #4963)
This commit is contained in:
parent
ca6f1bdd13
commit
0079a6bf05
@ -55,6 +55,7 @@
|
|||||||
Bug #4942: Hand-to-Hand attack type is chosen randomly when "always use best attack" is turned off
|
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 #4947: Player character doesn't use lip animation
|
||||||
Bug #4948: Footstep sounds while levitating on ground level
|
Bug #4948: Footstep sounds while levitating on ground level
|
||||||
|
Bug #4963: Enchant skill progress is incorrect
|
||||||
Feature #2229: Improve pathfinding AI
|
Feature #2229: Improve pathfinding AI
|
||||||
Feature #3442: Default values for fallbacks from ini file
|
Feature #3442: Default values for fallbacks from ini file
|
||||||
Feature #3610: Option to invert X axis
|
Feature #3610: Option to invert X axis
|
||||||
|
@ -864,16 +864,15 @@ namespace MWMechanics
|
|||||||
if (mCaster == getPlayer())
|
if (mCaster == getPlayer())
|
||||||
mCaster.getClass().skillUsageSucceeded (mCaster, ESM::Skill::Enchant, 1);
|
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())
|
if (mCaster == getPlayer())
|
||||||
{
|
|
||||||
mCaster.getClass().skillUsageSucceeded (mCaster, ESM::Skill::Enchant, 3);
|
mCaster.getClass().skillUsageSucceeded (mCaster, ESM::Skill::Enchant, 3);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inflict(mCaster, mCaster, enchantment->mEffects, ESM::RT_Self);
|
inflict(mCaster, mCaster, enchantment->mEffects, ESM::RT_Self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user