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

@ -93,8 +93,8 @@ namespace Server.Ethics
if (IsImbued(child, true))
return true;
public static bool IsImbued(Item item, bool recurse) =>
Find(item) != null || recurse && item.Items.Any(child => IsImbued(child, true));
return false;
}
public static void Initialize()
{

View file

@ -33,9 +33,7 @@ namespace Server.Ethics.Evil
SpellHelper.GetSurfaceTop(ref p);
IPooledEnumerable eable = from.Mobile.GetMobilesInRange(6);
foreach (Mobile mob in eable)
foreach (Mobile mob in from.Mobile.GetMobilesInRange(6))
{
if (mob == from.Mobile || !SpellHelper.ValidIndirectTarget(from.Mobile, mob))
continue;
@ -56,8 +54,6 @@ namespace Server.Ethics.Evil
powerFunctioned = true;
}
eable.Free();
if (powerFunctioned)
{
SpellHelper.Turn(from.Mobile, p);
@ -75,4 +71,4 @@ namespace Server.Ethics.Evil
}
}
}
}
}

View file

@ -80,11 +80,13 @@ namespace Server.Ethics.Evil
}
}
else
{
sb.Append('.');
}
from.Mobile.LocalOverheadMessage(MessageType.Regular, 0x59, false, sb.ToString());
FinishInvoke(from);
}
}
}
}

View file

@ -33,9 +33,7 @@ namespace Server.Ethics.Hero
SpellHelper.GetSurfaceTop(ref p);
IPooledEnumerable eable = from.Mobile.GetMobilesInRange(6);
foreach (Mobile mob in eable)
foreach (Mobile mob in from.Mobile.GetMobilesInRange(6))
{
if (mob != from.Mobile && SpellHelper.ValidIndirectTarget(from.Mobile, mob))
continue;
@ -56,8 +54,6 @@ namespace Server.Ethics.Hero
powerFunctioned = true;
}
eable.Free();
if (powerFunctioned)
{
SpellHelper.Turn(from.Mobile, p);
@ -75,4 +71,4 @@ namespace Server.Ethics.Hero
}
}
}
}
}

View file

@ -80,11 +80,13 @@ namespace Server.Ethics.Hero
}
}
else
{
sb.Append('.');
}
from.Mobile.LocalOverheadMessage(MessageType.Regular, 0x59, false, sb.ToString());
FinishInvoke(from);
}
}
}
}