From e19b2caf7d3086ca16c289c3663e9ef45944861b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 16 Sep 2022 15:18:19 +0200 Subject: [PATCH] make marsify award get deflected --- 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 d5048a8c6..b2e2f9848 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -176,7 +176,7 @@ def award_thing(v, thing_type, id): return {"error": "User is already permenantly marsified!"}, 403 if v.id != author.id: - if author.deflector and v.id != AEVANN_ID and (AWARDS[kind]['price'] > 500 or kind.istitle()) and kind not in ('pin','unpin','benefactor'): + if author.deflector and v.id != AEVANN_ID and (AWARDS[kind]['price'] > 500 or kind == 'marsify' or kind.istitle()) and kind not in ('pin','unpin','benefactor'): msg = f"@{v.username} has tried to give your [{thing_type}]({thing.shortlink}) the {AWARDS[kind]['title']} Award but it was deflected and applied to them :marseytroll:" send_repeatable_notification(author.id, msg) msg = f"@{author.username} is under the effect of a deflector award; your {AWARDS[kind]['title']} Award has been deflected back to you :marseytroll:"