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

@ -40,7 +40,7 @@ namespace Server.Gumps
targeted is AddonComponent)
targeted = ((AddonComponent)targeted).Addon;
if (m_Type.IsAssignableFrom(targeted.GetType()))
if (m_Type.IsInstanceOfType(targeted))
{
CommandLogging.LogChangeProperty(m_Mobile, m_Object, m_Property.Name, targeted.ToString());
m_Property.SetValue(m_Object, targeted, null);