More cast conversion fixes
This commit is contained in:
parent
3f45bd57b9
commit
aba9452161
46 changed files with 359 additions and 506 deletions
|
|
@ -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
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue