forked from rDrama/rDrama
1
0
Fork 0

fix deflector not working for house awards

master
Aevann1 2022-08-30 20:35:03 +02:00
parent bcec360f30
commit 1706b15ce6
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ def award_thing(v, thing_type, id):
return {"error": "You can't use this award on yourself."}, 400
if v.id != author.id:
if author.deflector and (AWARDS[kind]['price'] > 500 or kind.isupper()) and kind not in ('pin','unpin','benefactor'):
if author.deflector and (AWARDS[kind]['price'] > 500 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:"