Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 • committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -57,13 +57,17 @@ namespace Server.Items
base.GetContextMenuEntries(from, list);
if (from.Alive && Movable)
{
list.Add(new AddToSpellbookEntry());
}
}
public override void OnDoubleClick(Mobile from)
{
if (!DesignContext.Check(from))
{
return; // They are customizing
}
if (!IsChildOf(from.Backpack))
{
@ -74,9 +78,13 @@ namespace Server.Items
var spell = SpellRegistry.NewSpell(SpellID, from, this);
if (spell != null)
{
spell.Cast();
}
else
from.SendLocalizedMessage(502345); // This spell has been temporarily disabled.
{
@from.SendLocalizedMessage(502345); // This spell has been temporarily disabled.
}
}
}
}