From c7ea40df6c177a7168ac472ca9508563e6cae2a9 Mon Sep 17 00:00:00 2001 From: Alayan Date: Sat, 22 Sep 2018 16:06:11 +0200 Subject: [PATCH] Correctly wait before using a gum shield against a bomb for best AI --- src/karts/controller/skidding_ai.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/karts/controller/skidding_ai.cpp b/src/karts/controller/skidding_ai.cpp index 26bb42670..a6e5bc03a 100644 --- a/src/karts/controller/skidding_ai.cpp +++ b/src/karts/controller/skidding_ai.cpp @@ -1360,7 +1360,7 @@ void SkiddingAI::handleBubblegum(int item_skill, const std::vector //if it is a bomb, wait : we may pass it to another kart before the timer runs out if (item_skill == 5 && type == Attachment::ATTACH_BOMB) { - if (m_kart->getAttachment()->getTicksLeft() > stk_config->time2Ticks(3)) + if (m_kart->getAttachment()->getTicksLeft() < stk_config->time2Ticks(2)) { m_controls->setFire(true); m_controls->setLookBack(false);