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
|
|
@ -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