mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 03:15:32 +00:00
Fix wrong skill level for spell success formula.
This commit is contained in:
parent
60bec03987
commit
0627e23d3c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue