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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user