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
|
|
@ -273,12 +273,7 @@ namespace Server.Engines.Events
|
|||
{ typeof(WrappedCandy), typeof(Lollipops), typeof(NougatSwirl), typeof(Taffy), typeof(JellyBeans) };
|
||||
|
||||
if (TrickOrTreat.CheckMobile(target))
|
||||
for (int i = 0; i < types.Length; i++)
|
||||
{
|
||||
Item item = target.Backpack.FindItemByType(types[i]);
|
||||
|
||||
if (item != null) return item;
|
||||
}
|
||||
return target.Backpack.FindItemByType(types);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue