diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index cb86a3e..eabe59b 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -1712,7 +1712,8 @@ function xp_gem:draw() end function xp_gem:move() - if abs(self.x + 1 - primary_ship.x - primary_ship.hurt.x_off) <= primary_ship.magnet and abs(self.y + 1 - primary_ship.y - primary_ship.hurt.y_off) <= primary_ship.magnet then + + if not primary_ship.dead and abs(self.x + 1 - primary_ship.x - primary_ship.hurt.x_off) <= primary_ship.magnet and abs(self.y + 1 - primary_ship.y - primary_ship.hurt.y_off) <= primary_ship.magnet then if (self.x < primary_ship.x + 3) self.x += 1 if (self.x > primary_ship.x + 5) self.x -= 1 if (self.y < primary_ship.y + 3) self.y += 1