diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Payloads/DeathPayload.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Payloads/DeathPayload.cs index a14164a..720170d 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Payloads/DeathPayload.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Payloads/DeathPayload.cs @@ -58,24 +58,24 @@ namespace DiIiS_NA.GameServer.GSSystem.PowerSystem.Payloads if (Target.Dead) return; - if (Target is Player plr) + if (Target is Player playerTarget) { - if(plr.World.Game.NephalemGreater) - plr.Attributes[GameAttributes.Tiered_Loot_Run_Death_Count]++; - if (plr.SkillSet.HasPassive(218501) && plr.World.BuffManager.GetFirstBuff(plr) == null) //SpiritWessel (wd) + if(playerTarget.World.Game.NephalemGreater) + playerTarget.Attributes[GameAttributes.Tiered_Loot_Run_Death_Count]++; + if (playerTarget.SkillSet.HasPassive(218501) && playerTarget.World.BuffManager.GetFirstBuff(playerTarget) == null) //SpiritWessel (wd) { - plr.Attributes[GameAttributes.Hitpoints_Cur] = plr.Attributes[GameAttributes.Hitpoints_Max_Total] * 0.15f; - plr.Attributes.BroadcastChangedIfRevealed(); - plr.World.BuffManager.AddBuff(plr, plr, new ActorGhostedBuff()); - plr.World.BuffManager.AddBuff(plr, plr, new SpiritVesselCooldownBuff()); + playerTarget.Attributes[GameAttributes.Hitpoints_Cur] = playerTarget.Attributes[GameAttributes.Hitpoints_Max_Total] * 0.15f; + playerTarget.Attributes.BroadcastChangedIfRevealed(); + playerTarget.World.BuffManager.AddBuff(playerTarget, playerTarget, new ActorGhostedBuff()); + playerTarget.World.BuffManager.AddBuff(playerTarget, playerTarget, new SpiritVesselCooldownBuff()); return; } - if (plr.SkillSet.HasPassive(156484) && plr.World.BuffManager.GetFirstBuff(plr) == null) //NearDeathExperience (monk) + if (playerTarget.SkillSet.HasPassive(156484) && playerTarget.World.BuffManager.GetFirstBuff(playerTarget) == null) //NearDeathExperience (monk) { - plr.Attributes[GameAttributes.Hitpoints_Cur] = plr.Attributes[GameAttributes.Hitpoints_Max_Total] * 0.35f; - plr.Attributes[GameAttributes.Resource_Cur, 3] = plr.Attributes[GameAttributes.Resource_Max_Total, 3] * 0.35f; - plr.Attributes.BroadcastChangedIfRevealed(); - plr.World.BuffManager.AddBuff(plr, plr, new NearDeathExperienceCooldownBuff()); + playerTarget.Attributes[GameAttributes.Hitpoints_Cur] = playerTarget.Attributes[GameAttributes.Hitpoints_Max_Total] * 0.35f; + playerTarget.Attributes[GameAttributes.Resource_Cur, 3] = playerTarget.Attributes[GameAttributes.Resource_Max_Total, 3] * 0.35f; + playerTarget.Attributes.BroadcastChangedIfRevealed(); + playerTarget.World.BuffManager.AddBuff(playerTarget, playerTarget, new NearDeathExperienceCooldownBuff()); return; } } diff --git a/src/DiIiS-NA/D3-GameServer/GameServerConfig.cs b/src/DiIiS-NA/D3-GameServer/GameServerConfig.cs index 19863b7..095569e 100644 --- a/src/DiIiS-NA/D3-GameServer/GameServerConfig.cs +++ b/src/DiIiS-NA/D3-GameServer/GameServerConfig.cs @@ -61,7 +61,7 @@ namespace DiIiS_NA.GameServer #if DEBUG get => GetBoolean(nameof(AfkDisconnect), false); #else - get => GetBoolean(nameof(AfkTimeoutEnabled), true); + get => GetBoolean(nameof(AfkDisconnect), true); #endif set => Set(nameof(AfkDisconnect), value); }