fix: Removes Core.SE guard from recently reported murder checks (#2359)

This commit is contained in:
Jack 2026-03-11 19:05:48 +13:00 • committed by GitHub
parent e37ad17d7d
commit 0d7b27fe7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)