chore: Cleans up pattern checks. (#892)
This commit is contained in:
parent
171df32257
commit
63e1b02d93
283 changed files with 587 additions and 702 deletions
|
|
@ -20,14 +20,14 @@ namespace Server.Spells.Ninjitsu
|
|||
|
||||
Item handOne = from.FindItemOnLayer(Layer.OneHanded) as BaseWeapon;
|
||||
|
||||
if (handOne != null && !(handOne is BaseRanged))
|
||||
if (handOne != null && handOne is not BaseRanged)
|
||||
{
|
||||
return base.Validate(from);
|
||||
}
|
||||
|
||||
Item handTwo = from.FindItemOnLayer(Layer.TwoHanded) as BaseWeapon;
|
||||
|
||||
if (handTwo != null && !(handTwo is BaseRanged))
|
||||
if (handTwo != null && handTwo is not BaseRanged)
|
||||
{
|
||||
return base.Validate(from);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue