mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 00:39:58 +00:00
Fix wrong skill level for spell success formula.
This commit is contained in:
parent
60bec03987
commit
0627e23d3c
@ -88,7 +88,7 @@ namespace MWMechanics
|
|||||||
NpcStats& stats = MWWorld::Class::get(actor).getNpcStats(actor);
|
NpcStats& stats = MWWorld::Class::get(actor).getNpcStats(actor);
|
||||||
CreatureStats& creatureStats = MWWorld::Class::get(actor).getCreatureStats(actor);
|
CreatureStats& creatureStats = MWWorld::Class::get(actor).getCreatureStats(actor);
|
||||||
|
|
||||||
int skillLevel = stats.getSkill (getSpellSchool(spell, actor)).getModified();
|
int skillLevel = stats.getSkill (spellSchoolToSkill(getSpellSchool(spell, actor))).getModified();
|
||||||
|
|
||||||
// Sound magic effect (reduces spell casting chance)
|
// Sound magic effect (reduces spell casting chance)
|
||||||
int soundMagnitude = creatureStats.getMagicEffects().get (MWMechanics::EffectKey (48)).mMagnitude;
|
int soundMagnitude = creatureStats.getMagicEffects().get (MWMechanics::EffectKey (48)).mMagnitude;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user