1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-28 20:27:46 +00:00

Clear last combo action id if the combo breaks.

This commit is contained in:
collett 2020-01-02 19:51:19 +09:00
parent 28a88e5a96
commit 482745624c

View file

@ -354,10 +354,18 @@ 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 )
{
// 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 );
}
}
}
std::pair< uint32_t, Common::ActionHitSeverityType > Action::Action::calcDamage( uint32_t potency )