disable rewards for hitting ghosts
This commit is contained in:
parent
766ce0c5c5
commit
c1d3eaea86
@ -1299,7 +1299,7 @@ class Player:
|
|||||||
c = self.hand.pop(randrange(0, len(self.hand)))
|
c = self.hand.pop(randrange(0, len(self.hand)))
|
||||||
self.game.deck.scrap(c, True, player=self)
|
self.game.deck.scrap(c, True, player=self)
|
||||||
G.sio.emit('chat_message', room=self.game.name, data=f'_shotgun_scrap|{self.name}|{c.name}')
|
G.sio.emit('chat_message', room=self.game.name, data=f'_shotgun_scrap|{self.name}|{c.name}')
|
||||||
if self.attacker and 'gold_rush' in self.game.expansions:
|
if self.attacker and 'gold_rush' in self.game.expansions and not self.is_ghost:
|
||||||
if (isinstance(self.attacker, Player)):
|
if (isinstance(self.attacker, Player)):
|
||||||
self.attacker.gold_nuggets += 1
|
self.attacker.gold_nuggets += 1
|
||||||
self.attacker.notify_self()
|
self.attacker.notify_self()
|
||||||
|
Loading…
Reference in New Issue
Block a user