fix: Removes Core.SE guard from recently reported murder checks (#2359)
This commit is contained in:
parent
e37ad17d7d
commit
0d7b27fe7a
1 changed files with 8 additions and 11 deletions
|
|
@ -42,7 +42,7 @@ public class ReportMurdererGump : StaticGump<ReportMurdererGump>
|
||||||
{
|
{
|
||||||
if (ai.Attacker.Player && ai.CanReportMurder && !ai.Reported)
|
if (ai.Attacker.Player && ai.CanReportMurder && !ai.Reported)
|
||||||
{
|
{
|
||||||
if (!Core.SE || !_recentlyReported.Contains((m, ai.Attacker)))
|
if (!_recentlyReported.Contains((m, ai.Attacker)))
|
||||||
{
|
{
|
||||||
if (notInThievesGuild)
|
if (notInThievesGuild)
|
||||||
{
|
{
|
||||||
|
|
@ -150,17 +150,14 @@ public class ReportMurdererGump : StaticGump<ReportMurdererGump>
|
||||||
var killer = _killers[_idx];
|
var killer = _killers[_idx];
|
||||||
if (killer?.Deleted == false)
|
if (killer?.Deleted == false)
|
||||||
{
|
{
|
||||||
if (Core.SE)
|
if (_recentlyReported.Add((from, killer)))
|
||||||
{
|
{
|
||||||
if (_recentlyReported.Add((from, killer)))
|
Timer.DelayCall(
|
||||||
{
|
_recentlyReportedDelay,
|
||||||
Timer.DelayCall(
|
static (f, k) => _recentlyReported.Remove((f, k)),
|
||||||
_recentlyReportedDelay,
|
from,
|
||||||
static (f, k) => _recentlyReported.Remove((f, k)),
|
killer
|
||||||
from,
|
);
|
||||||
killer
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (killer is PlayerMobile pk)
|
if (killer is PlayerMobile pk)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue