mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 19:45:32 +00:00
Advance skill on successfull spell cast
This commit is contained in:
parent
976344f0a3
commit
3ea7d58ca8
2 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,7 @@ add_openmw_dir (mwclass
|
|||
add_openmw_dir (mwmechanics
|
||||
mechanicsmanagerimp stat character creaturestats magiceffects movement actors objects
|
||||
drawstate spells activespells npcstats aipackage aisequence alchemy aiwander aitravel aifollow
|
||||
aiescort aiactivate repair enchanting pathfinding security
|
||||
aiescort aiactivate repair enchanting pathfinding security spellsuccess
|
||||
)
|
||||
|
||||
add_openmw_dir (mwbase
|
||||
|
|
|
@ -2040,6 +2040,7 @@ namespace MWWorld
|
|||
return;
|
||||
}
|
||||
|
||||
actor.getClass().skillUsageSucceeded(actor, MWMechanics::spellSchoolToSkill(MWMechanics::getSpellSchool(selectedSpell, actor)), 0);
|
||||
|
||||
actor.getClass().getCreatureStats(actor).getActiveSpells().addSpell(selectedSpell, actor, ESM::RT_Self);
|
||||
// TODO: RT_Range, RT_Touch
|
||||
|
|
Loading…
Reference in a new issue