diff --git a/source/enemy/nssnake.cpp b/source/enemy/nssnake.cpp index fd772754a..dd4df2234 100644 --- a/source/enemy/nssnake.cpp +++ b/source/enemy/nssnake.cpp @@ -1261,6 +1261,11 @@ void CNpcSeaSnakeEnemy::processShot( int _frames ) m_speed = m_data[m_type].speed + ( ( 3 * ( NPC_SEA_SNAKE_LENGTH - ( m_health - 1 ) ) ) / NPC_SEA_SNAKE_LENGTH ); m_collTimer = GameState::getOneSecondInFrames(); + + if ( m_segmentCount <= 0 ) + { + CGameScene::setBossHasBeenKilled(); + } } m_invulnerableTimer = 2 * GameState::getOneSecondInFrames();