mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
Advance skill on successfull spell cast
This commit is contained in:
parent
976344f0a3
commit
3ea7d58ca8
@ -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 New Issue
Block a user