Correctly wait before using a gum shield against a bomb for best AI

This commit is contained in:
Alayan 2018-09-22 16:06:11 +02:00
parent e11f327519
commit c7ea40df6c

View File

@ -1360,7 +1360,7 @@ void SkiddingAI::handleBubblegum(int item_skill, const std::vector<const Item *>
//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);