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

@ -316,9 +316,9 @@ namespace Server.Items
if (WeaponIsValid(weapon, from))
{
if (targeted is Mobile)
if (targeted is Mobile mobile)
{
Shoot(player, (Mobile)targeted, weapon);
Shoot(player, mobile, weapon);
}
else if (targeted.GetType() == weapon.AmmoType)
{
@ -382,4 +382,4 @@ namespace Server.Items
}
}
}
}
}