chore: Cleans up pattern checks. (#892)

This commit is contained in:
Kamron Batman 2021-12-24 15:53:59 -08:00 • committed by GitHub
parent 171df32257
commit 63e1b02d93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
283 changed files with 587 additions and 702 deletions

View file

@ -2436,8 +2436,7 @@ namespace Server.Mobiles
}
if (aggressor.ChangingCombatant && (m_Controlled || _summoned) &&
(ct == OrderType.Come || !Core.ML && ct == OrderType.Stay || ct == OrderType.Stop || ct == OrderType.None ||
ct == OrderType.Follow))
(ct == OrderType.Come || !Core.ML && ct == OrderType.Stay || ct is OrderType.Stop or OrderType.None or OrderType.Follow))
{
ControlTarget = aggressor;
ControlOrder = OrderType.Attack;
@ -3384,7 +3383,7 @@ namespace Server.Mobiles
return false;
}
if (target is BaseCreature creature && creature.IsInvulnerable || target is PlayerVendor || target is TownCrier)
if (target is BaseCreature creature && creature.IsInvulnerable || target is PlayerVendor or TownCrier)
{
if (message)
{