Skip to content

Commit

Permalink
skillcheck magery
Browse files Browse the repository at this point in the history
Added Run a skillcheck for NPC to give them a chance to gain skill - if that option is enabled in ini (xuri)
  • Loading branch information
DragonSlayer62 committed Aug 4, 2024
1 parent d428164 commit 8b11fa7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
4/8/2024 - Dragon Slayer
Added Run a skillcheck for NPC to give them a chance to gain skill - if that option is enabled in ini (xuri)

1/05/2024 - Dragon Slayer/Xuri
Fixed AutoUnequipAttempt function in clumsy.js, createfood.js level1target.js, will no longer fail on casting and return to hardcode.
Fixed createfood to check for reagents on cast.
Expand Down
5 changes: 5 additions & 0 deletions source/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4499,6 +4499,11 @@ void CMagic::CastSpell( CSocket *s, CChar *caster )
caster->StopSpell();
return;
}
else if( caster->IsNpc() )
{
// Run a skillcheck for NPC to give them a chance to gain skill - if that option is enabled in ini
Skills->CheckSkill( caster, MAGERY, lowSkill, highSkill );
}

if( curSpell > 63 && static_cast<UI32>(curSpell) <= spellCount && spellCount <= 70 )
{
Expand Down

0 comments on commit 8b11fa7

Please sign in to comment.