Fixes more casting
This commit is contained in:
parent
61937d9c97
commit
e77d695684
91 changed files with 512 additions and 908 deletions
|
|
@ -134,9 +134,7 @@ namespace Server.Items
|
|||
|
||||
public void Fire( Mobile from )
|
||||
{
|
||||
BaseRanged bow = from.Weapon as BaseRanged;
|
||||
|
||||
if ( bow == null )
|
||||
if ( !(from.Weapon is BaseRanged bow) )
|
||||
{
|
||||
SendLocalizedMessageTo( from, 500593 ); // You must practice with ranged weapons on this.
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue