Fixes bad expressions, bad bool checks in loops, a few null pointer exceptions, and optimizes constructors.
This commit is contained in:
parent
8da55d6043
commit
f93c3b992e
62 changed files with 318 additions and 634 deletions
|
|
@ -150,12 +150,7 @@ namespace Server.Mobiles
|
|||
m_Mobile.UseSkill(SkillName.SpiritSpeak);
|
||||
}
|
||||
else
|
||||
{
|
||||
spell = new GreaterHealSpell(m_Mobile, null);
|
||||
|
||||
if (spell == null)
|
||||
spell = new HealSpell(m_Mobile, null);
|
||||
}
|
||||
}
|
||||
else if (m_Mobile.Hits < m_Mobile.HitsMax - 10)
|
||||
{
|
||||
|
|
@ -933,7 +928,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
double prio = m_Mobile.GetDistanceToSqrt(m);
|
||||
|
||||
if (!activeOnly && (inactive == null || prio < inactPrio))
|
||||
if (inactive == null || prio < inactPrio)
|
||||
{
|
||||
inactive = m;
|
||||
inactPrio = prio;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue