mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix(event): correct logic for various Valentine's items
This commit is contained in:
@@ -16,18 +16,18 @@ export const EVENTS = {
|
||||
npcImageSuffix: '',
|
||||
},
|
||||
bundle202302: {
|
||||
start: '2023-02-13T08:00-05:00',
|
||||
start: '2023-02-21T08:00-05:00',
|
||||
end: '2023-02-28T23:59-05:00',
|
||||
},
|
||||
potions202302:{
|
||||
start: '2023-02-21T08:00-05:00',
|
||||
start: '2023-02-13T08:00-05:00',
|
||||
end: '2023-02-28T23:59-05:00',
|
||||
},
|
||||
valentines2023: {
|
||||
start: '2023-02-13T08:00-05:00',
|
||||
end: '2023-02-17T23:59-05:00',
|
||||
season: 'valentines',
|
||||
npcImageSuffix: 'valentines',
|
||||
npcImageSuffix: '_valentines',
|
||||
},
|
||||
birthday10: {
|
||||
start: '2023-01-30T08:00-05:00',
|
||||
|
||||
@@ -137,7 +137,7 @@ api.cardTypes = {
|
||||
valentine: {
|
||||
key: 'valentine',
|
||||
messageOptions: 4,
|
||||
yearRound: moment().isBefore('2022-02-18T20:00-05:00'),
|
||||
yearRound: moment().isBefore('2023-02-17T23:59-05:00'),
|
||||
},
|
||||
birthday: {
|
||||
key: 'birthday',
|
||||
|
||||
@@ -475,7 +475,7 @@ spells.special = {
|
||||
target: 'user',
|
||||
notes: t('valentineCardNotes'),
|
||||
canOwn () {
|
||||
return false;
|
||||
return moment().isBetween('2023-02-13T08:00-05:00', '2023-02-17T23:59-05:00');
|
||||
},
|
||||
cast (user, target) {
|
||||
if (user === target) {
|
||||
|
||||
Reference in New Issue
Block a user