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:
parent
28a88e5a96
commit
482745624c
1 changed files with 10 additions and 2 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue