fix: Cleanup IPoint3D calls (#704)

This commit is contained in:
Kamron Batman 2021-08-19 09:11:48 -07:00 • committed by GitHub
parent 788b04b958
commit 3293ffcf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 158 additions and 264 deletions

View file

@ -11,30 +11,10 @@ namespace Server.SkillHandlers
SkillInfo.Table[46].Callback = OnUse;
}
public static bool CheckOkayHolding(Item item)
{
if (item == null)
{
return true;
}
if (item is Spellbook || item is Runebook)
{
return true;
}
if (Core.AOS && item is BaseWeapon weapon && weapon.Attributes.SpellChanneling != 0)
{
return true;
}
if (Core.AOS && item is BaseArmor armor && armor.Attributes.SpellChanneling != 0)
{
return true;
}
return false;
}
public static bool CheckOkayHolding(Item item) =>
item is null or Spellbook or Runebook
|| Core.AOS && item is BaseWeapon weapon && weapon.Attributes.SpellChanneling != 0
|| Core.AOS && item is BaseArmor armor && armor.Attributes.SpellChanneling != 0;
public static TimeSpan OnUse(Mobile m)
{