From e7e667f56f7db2c70b2f3a1af3346a0227469ecb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 1 Nov 2022 02:11:44 +0200 Subject: [PATCH] fix undeflectable awards being vaporized --- files/routes/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 3903e0aa2..254b5b2d0 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -171,7 +171,7 @@ def award_thing(v, thing_type, id): if v.id != author.id: safe_username = "👻" if thing.ghost else f"@{author.username}" - if author.deflector and v.deflector: + if author.deflector and v.deflector and AWARDS[kind]['deflectable']: msg = f"@{v.username} has tried to give your [{thing_type}]({thing.shortlink}) the {AWARDS[kind]['title']} Award but it was deflected on them, they also had a deflector up, so it bounced back and forth until it vaporized!" send_repeatable_notification(author.id, msg)