More cast conversion fixes

This commit is contained in:
Kamron Batman 2018-09-06 18:07:42 -07:00
parent 3f45bd57b9
commit aba9452161
46 changed files with 359 additions and 506 deletions

View file

@ -1021,7 +1021,7 @@ namespace Server.Items
#region Self Looting
if ( checkSelfLoot && from == m_Owner && !GetFlag( CorpseFlag.SelfLooted ) && this.Items.Count != 0 )
{
if ( @from.FindItemOnLayer( Layer.OuterTorso ) is DeathRobe robe )
if ( from.FindItemOnLayer( Layer.OuterTorso ) is DeathRobe robe )
{
Map map = from.Map;
@ -1104,7 +1104,7 @@ namespace Server.Items
#region Quests
if ( @from is PlayerMobile player )
if ( from is PlayerMobile player )
{
QuestSystem qs = player.Quest;