chatcommands: always apply pb from raids

This logic was from prior to cox having a pb message, and so it had to compare
the known pb with the current raid duration. Now that all raids have a pb
message, it is no longer necessary to do this. This fixes pb times syncing up
in the main game correctly that were overwritten by leagues.
This commit is contained in:
Adam
2020-12-07 23:33:18 -05:00
parent 3911a2c79c
commit f67eed0f96
2 changed files with 3 additions and 44 deletions

View File

@@ -303,13 +303,7 @@ public class ChatCommandsPlugin extends Plugin
setKc(boss, kc);
if (lastPb > -1)
{
// lastPb contains the last raid duration and not the personal best, because the raid
// complete message does not include the pb. We have to check if it is a new pb:
int currentPb = getPb(boss);
if (currentPb <= 0 || lastPb < currentPb)
{
setPb(boss, lastPb);
}
setPb(boss, lastPb);
lastPb = -1;
}
lastBossKill = boss;