Skip to content

Commit

Permalink
feat: Update event time check in gacha controller
Browse files Browse the repository at this point in the history
Update the event time check in the gacha controller to reflect the correct month and date for the event. This ensures that the Europe gacha pool is only available during the specified event time.
  • Loading branch information
hanshino committed Jun 7, 2024
1 parent 7d1aecb commit c5bca2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/controller/princess/gacha.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async function gacha(context, { match, pickup, ensure = false, europe = false })
const now = moment();
const month = now.month() + 1;
const date = now.date();
const isEventTime = month === 5 && (date >= 11 && date <= 15);
const isEventTime = month === 6 && date >= 9 && date <= 11;

// 只有 12/31~1/1 這兩天才會開放歐洲轉蛋池
if (europe && !isEventTime) {
Expand Down

0 comments on commit c5bca2f

Please sign in to comment.