Removes literal variables (#257)

This commit is contained in:
Kamron Batman 2020-09-18 18:41:26 -07:00 • committed by GitHub
parent 580da8a0cc
commit 4d6e584b6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
359 changed files with 1306 additions and 1306 deletions

View file

@ -28,8 +28,8 @@ namespace Server.ContextMenus
{
if (targeted is Spellbook book)
{
if (@from.CheckAlive() && !m_Scroll.Deleted && m_Scroll.Movable && m_Scroll.Amount >= 1 &&
m_Scroll.CheckItemUse(@from))
if (from.CheckAlive() && !m_Scroll.Deleted && m_Scroll.Movable && m_Scroll.Amount >= 1 &&
m_Scroll.CheckItemUse(from))
{
var type = Spellbook.GetTypeForSpell(m_Scroll.SpellID);
@ -38,7 +38,7 @@ namespace Server.ContextMenus
}
else if (book.HasSpell(m_Scroll.SpellID))
{
@from.SendLocalizedMessage(500179); // That spell is already present in that spellbook.
from.SendLocalizedMessage(500179); // That spell is already present in that spellbook.
}
else
{
@ -50,7 +50,7 @@ namespace Server.ContextMenus
m_Scroll.Consume();
@from.Send(new PlaySound(0x249, book.GetWorldLocation()));
from.Send(new PlaySound(0x249, book.GetWorldLocation()));
}
}
}