     if @colliding
       @doCollisionDamage()
 
+    # Conditions
     if @conditions.has('no_thrust')
       @throttle = 0
+
+    if @conditions.has('boost_failure')
+      @boosting = false
 
 # Return the angle the engine is pointing in
   getDirection: () =>

    return [xMomentum, yMomentum, angularMomentum]

  boostOn: () =>
    @boosting = true

  boostOff: () =>
    @boosting = false

module.exports = Engine
  'left_flap_stuck',
  'right_flap_stuck',
  'stutter',
  'boost_stuck',
  'boost_failure',
]

class Engine extends Entity
