Reglage des problemes avec les bonnus #25
|
@ -369,7 +369,7 @@ def __spawn_ball(world: World):
|
|||
def __collision_with_ball(a: Entity, b: Entity):
|
||||
if Ball in a:
|
||||
a.world.new_entity().set(Sound("bound.mp3"))
|
||||
if Player1 in b or Player2 in b:
|
||||
if Player1 in b or Player2 in b and Ball in a:
|
||||
for player in a.world.query(LastPlayerTurn):
|
||||
del player[LastPlayerTurn]
|
||||
b.set(LastPlayerTurn())
|
||||
|
|
Loading…
Reference in a new issue