Skip to content

Commit

Permalink
refactor: Use HasSurpassedMaxKillingSpree method
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Sep 7, 2024
1 parent 61c6100 commit ddf2945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/Players/Accounts/KillingSpreeUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void Update(Player player, PlayerInfo playerInfo)
playerInfo.StatsPerRound.AddPoints(earnedPoints);
player.AddHealth(10);

if (currentKillingSpree > playerInfo.MaxKillingSpree)
if (playerInfo.HasSurpassedMaxKillingSpree())
{
playerInfo.SetMaxKillingSpree(currentKillingSpree);
playerRepository.UpdateMaxKillingSpree(playerInfo);
Expand Down

0 comments on commit ddf2945

Please sign in to comment.