Revert "Updates Packets & Randomizer (#43)" (#61)

This reverts commit 179cb50557.
This commit is contained in:
Kamron Batman 2019-11-11 08:46:11 -08:00 • committed by GitHub
parent 179cb50557
commit c2ecc76457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
588 changed files with 16260 additions and 10926 deletions

View file

@ -1,4 +1,3 @@
using System.Linq;
using Server.Spells;
using Server.Spells.First;
using Server.Spells.Fourth;
@ -117,16 +116,19 @@ namespace Server.Mobiles
if (!m_Mobile.CanSee(m) || !(m is BaseCreature) || ((BaseCreature)m).Team != m_Mobile.Team)
continue;
if (funcs.Any(t => t(m)))
{
double val = -m_Mobile.GetDistanceToSqrt(m);
if (found == null || val > prio)
for (int i = 0; i < funcs.Length; ++i)
if (funcs[i](m))
{
prio = val;
found = m;
double val = -m_Mobile.GetDistanceToSqrt(m);
if (found == null || val > prio)
{
prio = val;
found = m;
}
break;
}
}
}
return found;