Fixes sequential checks
This commit is contained in:
parent
83dcf536d8
commit
42d0b6271f
67 changed files with 99 additions and 99 deletions
|
|
@ -105,7 +105,7 @@ namespace Server.Mobiles
|
|||
BaseShield shield = Shield;
|
||||
Item twoHanded = from.FindItemOnLayer( Layer.TwoHanded );
|
||||
|
||||
if ( (pack != null && pack.FindItemByType( shield.GetType() ) != null) || ( twoHanded != null && shield.GetType().IsAssignableFrom( twoHanded.GetType() ) ) )
|
||||
if ( (pack?.FindItemByType( shield.GetType() ) != null) || ( twoHanded != null && shield.GetType().IsAssignableFrom( twoHanded.GetType() ) ) )
|
||||
{
|
||||
Say( 1007110 ); // Why dost thou ask about virtue guards when thou art one?
|
||||
shield.Delete();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue