Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 • committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -89,14 +89,13 @@ namespace Server.Items
List<Mobile> targets = eable.Where(m =>
{
if (from == m || !SpellHelper.ValidIndirectTarget(from, m) || !from.CanBeHarmful(m, false)
|| Core.AOS && !from.InLOS(m))
|| (Core.AOS && !from.InLOS(m)))
return false;
if (m.Player)
playerVsPlayer = true;
return true;
}).ToList();
eable.Free();
@ -194,7 +193,7 @@ namespace Server.Items
private class InternalTarget : Target
{
private FireHorn m_Horn;
private readonly FireHorn m_Horn;
public InternalTarget(FireHorn horn) : base(Core.AOS ? 3 : 2, true, TargetFlags.Harmful) => m_Horn = horn;