feat(event): New Year's Eve 2021

This commit is contained in:
SabreCat
2021-12-30 13:34:04 -06:00
parent bcfea31ffb
commit 5973bca327
7 changed files with 153 additions and 9 deletions

View File

@@ -289,7 +289,7 @@ spells.special = {
target: 'user',
notes: t('spellSpecialSnowballAuraNotes'),
canOwn () {
return false;
return moment().isBetween('2021-12-30T08:00-04:00', EVENTS.winter2022.end);
},
cast (user, target, req) {
if (!user.items.special.snowball) throw new NotAuthorized(t('spellNotOwned')(req.language));
@@ -435,7 +435,7 @@ spells.special = {
target: 'user',
notes: t('nyeCardNotes'),
canOwn () {
return false;
return moment().isBetween('2021-12-30T08:00-04:00', '2022-01-02T20:00-04:00');
},
cast (user, target) {
if (user === target) {