Fixes several more expression issues and cast type check merges.

This commit is contained in:
Kamron Batman 2018-09-15 23:31:51 -07:00
parent f93c3b992e
commit 9542c79ea4
24 changed files with 106 additions and 145 deletions

View file

@ -1272,7 +1272,7 @@ namespace Server.Items
{
Item item = list[i];
if (type.IsAssignableFrom(item.GetType()))
if (type.IsInstanceOfType(item))
{
int need = amount - consumed;
int theirAmount = item.Amount;

View file

@ -425,7 +425,7 @@ namespace Server
do
{
if (regionType.IsAssignableFrom(r.GetType()))
if (regionType.IsInstanceOfType(r))
return r;
r = r.Parent;