Implement "special games" game check for badge handling
This commit is contained in:
1 parent
7ad84d5b5f
commit
165f9eccb3
3 files changed
+21
-9
No files matched your search
+3
-1
@@ -455,10 +455,12 @@ class DropsCampaign:
|
||||
channel is None or ( # channel isn't specified,
|
||||
# or there's no ACL, or the channel is in the ACL
|
||||
(not self.allowed_channels or channel in self.allowed_channels)
|
||||
# and the channel is live and playing the campaign's game
|
||||
# and the channel is live and playing the campaign's game,
|
||||
# or this campaign can be earned anywhere (special game)
|
||||
and (
|
||||
ignore_channel_status
|
||||
or channel.game is not None and channel.game == self.game
|
||||
or self.game.is_special_events()
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user