Skip to content

Commit cf0a02f

Browse files
committed
faster bomb deploying
you can deploy a bomb as soon the old one starts exploding
1 parent 17dd626 commit cf0a02f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎bomber/engine.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def player_unregister(self, position):
459459
self.freespawnpoints.append(position)
460460

461461
def plant_bomb(self, player):
462-
bombs = [b for b in self.items if isinstance(b, Bomb) and b.player is player]
462+
bombs = [b for b in self.items if isinstance(b, Bomb) and b.player is player and b.state == "ticking"]
463463
if len(bombs) >= player.bombamount:
464464
return False
465465
self.items.append(Bomb(

0 commit comments

Comments
 (0)