Skip to content

Commit

Permalink
enhancement: notify when learning spell from item (#1805)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arufonsu authored May 6, 2023
1 parent b67d908 commit 4e3eef9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Intersect.Server/Entities/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4822,6 +4822,9 @@ public bool TryTeachSpell(Spell spell, bool sendUpdate = true)
if (sendUpdate)
{
PacketSender.SendPlayerSpellUpdate(this, i);
PacketSender.SendChatMsg(this,
Strings.Player.spelltaughtlevelup.ToString(SpellBase.GetName(spell.SpellId)),
ChatMessageType.Experience, CustomColors.Alerts.Info, Name);
}

return true;
Expand Down

0 comments on commit 4e3eef9

Please sign in to comment.