Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -5,8 +5,7 @@ namespace Server.Spells.Second
{
public class ProtectionSpell : MagerySpell
{
private static Hashtable m_Registry = new Hashtable();
public static Hashtable Registry => m_Registry;
public static Hashtable Registry { get; } = new Hashtable();
private static SpellInfo m_Info = new SpellInfo(
"Protection", "Uus Sanct",
@ -28,7 +27,7 @@ namespace Server.Spells.Second
if ( Core.AOS )
return true;
if ( m_Registry.ContainsKey( Caster ) )
if ( Registry.ContainsKey( Caster ) )
{
Caster.SendLocalizedMessage( 1005559 ); // This spell is already in effect.
return false;
@ -122,7 +121,7 @@ namespace Server.Spells.Second
}
else
{
if ( m_Registry.ContainsKey( Caster ) )
if ( Registry.ContainsKey( Caster ) )
{
Caster.SendLocalizedMessage( 1005559 ); // This spell is already in effect.
}