fix: Eliminates double lookup with Contains->Remove (#2539)
This commit is contained in:
parent
e12cc5dd83
commit
8d88ef70fd
12 changed files with 25 additions and 80 deletions
|
|
@ -477,17 +477,8 @@ namespace Server.Misc
|
|||
return Notoriety.Enemy;
|
||||
}
|
||||
|
||||
if (Stealing.ClassicMode && pmTarg?.PermaFlags.Contains(source) == true)
|
||||
{
|
||||
return Notoriety.CanBeAttacked;
|
||||
}
|
||||
|
||||
if (bcTarg?.AlwaysAttackable == true)
|
||||
{
|
||||
return Notoriety.CanBeAttacked;
|
||||
}
|
||||
|
||||
if (CheckHouseFlag(source, target, target.Location, target.Map))
|
||||
if (Stealing.ClassicMode && pmTarg?.PermaFlags.Contains(source) == true ||
|
||||
bcTarg?.AlwaysAttackable == true || CheckHouseFlag(source, target, target.Location, target.Map))
|
||||
{
|
||||
return Notoriety.CanBeAttacked;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue