Fixes FindItemsByType and FindItemByType and new override of IsLockedDown and IsSecure by renaming their methods.
This commit is contained in:
parent
7321fa1b63
commit
a48ebb3a5f
50 changed files with 416 additions and 643 deletions
|
|
@ -569,7 +569,7 @@ namespace Server.Spells.Ninjitsu
|
|||
{
|
||||
if (m_Mobile.Hits < m_Mobile.HitsMax && m_Mobile.Backpack != null)
|
||||
{
|
||||
Bandage b = m_Mobile.Backpack.FindItemByType(typeof(Bandage)) as Bandage;
|
||||
Bandage b = m_Mobile.Backpack.FindItemByType<Bandage>();
|
||||
|
||||
if (b != null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -38,8 +38,8 @@ namespace Server.Spells.Spellweaving
|
|||
if (from?.Backpack == null)
|
||||
return null;
|
||||
|
||||
if (from.Holding is ArcaneFocus)
|
||||
return (ArcaneFocus)from.Holding;
|
||||
if (from.Holding is ArcaneFocus focus)
|
||||
return focus;
|
||||
|
||||
return from.Backpack.FindItemByType<ArcaneFocus>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue