This reverts commit 179cb50557.
This commit is contained in:
parent
179cb50557
commit
c2ecc76457
588 changed files with 16260 additions and 10926 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -80,11 +80,13 @@ namespace Server.Ethics.Evil
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append('.');
|
||||
}
|
||||
|
||||
from.Mobile.LocalOverheadMessage(MessageType.Regular, 0x59, false, sb.ToString());
|
||||
|
||||
FinishInvoke(from);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -80,11 +80,13 @@ namespace Server.Ethics.Hero
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append('.');
|
||||
}
|
||||
|
||||
from.Mobile.LocalOverheadMessage(MessageType.Regular, 0x59, false, sb.ToString());
|
||||
|
||||
FinishInvoke(from);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue