Skip to content

Commit 50eef1c

Browse files
committed
Fix immunity bug
1 parent 9070a37 commit 50eef1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cogs/virus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ async def on_regular_message(self, message):
760760
await self.surround_healing(message.channel.id, user)
761761

762762
if user.is_susceptible():
763-
if user.immune_until is None or user.immune_until < ctx.message.created_at:
763+
if user.immune_until is None or user.immune_until < message.created_at:
764764
await self.potentially_infect(message.channel.id, user)
765765
elif user.is_infectious():
766766
if user.immune_until is None or user.immune_until > message.created_at:

0 commit comments

Comments
 (0)