Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)

This commit is contained in:
Kamron Batman 2019-03-11 14:29:59 -07:00 • committed by GitHub
parent e748af4430
commit 513e54f70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1094 changed files with 15913 additions and 21892 deletions

View file

@ -48,23 +48,23 @@ namespace Server.Mobiles
if (m_Mobile.Debug)
m_Mobile.DebugSay("{0} needs a cure", toHelp.Name);
if (!new CureSpell(m_Mobile, null).Cast())
new CureSpell(m_Mobile, null).Cast();
if (!new CureSpell(m_Mobile).Cast())
new CureSpell(m_Mobile).Cast();
}
else if (NeedGHeal(toHelp))
{
if (m_Mobile.Debug)
m_Mobile.DebugSay("{0} needs a greater heal", toHelp.Name);
if (!new GreaterHealSpell(m_Mobile, null).Cast())
new HealSpell(m_Mobile, null).Cast();
if (!new GreaterHealSpell(m_Mobile).Cast())
new HealSpell(m_Mobile).Cast();
}
else if (NeedLHeal(toHelp))
{
if (m_Mobile.Debug)
m_Mobile.DebugSay("{0} needs a lesser heal", toHelp.Name);
new HealSpell(m_Mobile, null).Cast();
new HealSpell(m_Mobile).Cast();
}
}
else
@ -151,4 +151,4 @@ namespace Server.Mobiles
private delegate bool NeedDelegate(Mobile m);
}
}
}