fix: Fixes displaying ping pongs (#2374)

This commit is contained in:
Kamron Batman 2026-03-15 02:05:33 -07:00 • committed by GitHub
parent 6f8e9b9aec
commit b0189ccf4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 14 deletions

View file

@ -355,10 +355,8 @@ namespace Server.Mobiles
public override bool NewGuildDisplay => Guilds.Guild.NewGuildSystem;
public override bool Murderer =>
(Core.T2A && !Core.LBR
&& PlayerMurderSystem.GetMurderContext(this, out var context)
&& context.PingPong >= 5)
|| base.Murderer;
Core.T2A && !Core.LBR && PlayerMurderSystem.GetMurderContext(this, out var context)
&& context.PingPongs >= 5 || base.Murderer;
public bool BedrollLogout { get; set; }
@ -707,9 +705,9 @@ namespace Server.Mobiles
public ChampionTitleContext ChampionTitles => ChampionTitleSystem.GetOrCreateChampionTitleContext(this);
[CommandProperty(AccessLevel.GameMaster)]
public int PingPong
public int PingPongs
{
get => PlayerMurderSystem.GetMurderContext(this, out var context) ? context.PingPong : 0;
get => PlayerMurderSystem.GetMurderContext(this, out var context) ? context.PingPongs : 0;
set => PlayerMurderSystem.ManuallySetPingPong(this, value);
}