Fix wrong skill level for spell success formula.

actorid
scrawl 11 years ago
parent 60bec03987
commit 0627e23d3c

@ -88,7 +88,7 @@ namespace MWMechanics
NpcStats& stats = MWWorld::Class::get(actor).getNpcStats(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)
int soundMagnitude = creatureStats.getMagicEffects().get (MWMechanics::EffectKey (48)).mMagnitude;

Loading…
Cancel
Save