1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 17:57:47 +00:00

fix casting stateflag not being unset after finishing a cast

This commit is contained in:
NotAdam 2019-03-07 22:41:05 +11:00
parent 4577ff6a20
commit d948ac942a

View file

@ -272,6 +272,10 @@ void Sapphire::Action::Action::execute()
0x219, m_id, m_id, m_id, m_id ); 0x219, m_id, m_id, m_id, m_id );
m_pSource->sendToInRangeSet( control, true );*/ m_pSource->sendToInRangeSet( control, true );*/
if( auto player = m_pSource->getAsPlayer() )
{
player->unsetStateFlag( PlayerStateFlag::Casting );
}
} }
if( !hasClientsideTarget() ) if( !hasClientsideTarget() )