From 482745624ccd34594f23ef759b21f452b1da2922 Mon Sep 17 00:00:00 2001 From: collett Date: Thu, 2 Jan 2020 19:51:19 +0900 Subject: [PATCH] Clear last combo action id if the combo breaks. --- src/world/Action/Action.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/world/Action/Action.cpp b/src/world/Action/Action.cpp index 1e935021..2ab4f61d 100644 --- a/src/world/Action/Action.cpp +++ b/src/world/Action/Action.cpp @@ -354,9 +354,17 @@ void Action::Action::execute() // set currently casted action as the combo action if it interrupts a combo // ignore it otherwise (ogcds, etc.) - if( !m_actionData->preservesCombo && ( !isComboAction() || isCorrectCombo() ) ) + if( !m_actionData->preservesCombo ) { - m_pSource->setLastComboActionId( getId() ); + // potential combo starter or correct combo from last action + if ( ( !isComboAction() || isCorrectCombo() ) ) + { + m_pSource->setLastComboActionId( getId() ); + } + else // clear last combo action if the combo breaks + { + m_pSource->setLastComboActionId( 0 ); + } } }