From 17fb19ebc980e7a8fa75a53b55149032cdad42dd Mon Sep 17 00:00:00 2001 From: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com> Date: Tue, 28 Jun 2022 00:01:22 -0700 Subject: [PATCH] Add BP login trigger to daily reset. --- src/main/java/emu/grasscutter/game/player/Player.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/emu/grasscutter/game/player/Player.java b/src/main/java/emu/grasscutter/game/player/Player.java index 1b486ad97..86b8a1fdf 100644 --- a/src/main/java/emu/grasscutter/game/player/Player.java +++ b/src/main/java/emu/grasscutter/game/player/Player.java @@ -1387,6 +1387,10 @@ public class Player { // Reset daily BP missions. this.getBattlePassManager().resetDailyMissions(); + // Trigger login BP mission, so players who are online during the reset + // don't have to relog to clear the mission. + this.getBattlePassManager().triggerMission(WatcherTriggerType.TRIGGER_LOGIN); + // Reset weekly BP missions. if (currentDate.getDayOfWeek() == DayOfWeek.MONDAY) { this.getBattlePassManager().resetWeeklyMissions();