From 2fafe495dddc4b5429bc8a672bf2219e6d175750 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 29 Sep 2018 00:11:26 +0800 Subject: [PATCH] Make it consistent with attachment rewind when eating banana with bomb --- src/items/attachment.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/items/attachment.cpp b/src/items/attachment.cpp index e9ec70a2f..3f22ad2c3 100644 --- a/src/items/attachment.cpp +++ b/src/items/attachment.cpp @@ -354,6 +354,12 @@ void Attachment::hitBanana(ItemState *item_state) return; } + // Make it consistent with attachment rewind when eating banana with bomb + // see if (m_type == ATTACH_BOMB && m_kart->getKartAnimation() != NULL) + // in 515 + if (m_kart->getKartAnimation()) + return; + AttachmentType new_attachment = ATTACH_NOTHING; const KartProperties *kp = m_kart->getKartProperties(); // Use this as a basic random number to make sync with server easier.