Aevann 2023-03-24 17:22:17 +02:00
parent 02a7f5081c
commit d956431765
2 changed files with 8 additions and 8 deletions

View File

@ -68,15 +68,16 @@ def award_timers(v, bot=False):
badge = v.has_badge(167)
if v.bite and v.bite < now:
v.bite = None
notif_text = "Your vampire status has ended."
if v.old_house:
house = v.old_house.replace(' Founder', '')
notif_text += f" You're now back in House {house}!"
if "Vampire" not in v.old_house:
notif_text += f" You're now back in House {v.old_house.replace(' Founder', '')}!"
v.house = v.old_house
v.old_house = ''
notify_if_not_bot(notif_text)
v.house = v.old_house
v.old_house = ''
badge = v.has_badge(168)
if badge: g.db.delete(badge)
if v.earlylife and v.earlylife < now:

View File

@ -406,7 +406,6 @@ def award_thing(v, thing_type, id):
if 'Vampire' not in author.house:
if not author.old_house:
author.old_house = author.house
author.house = 'Vampire'
badge_grant(user=author, badge_id=168)