1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-16 15:37:45 +00:00

add remove condition casting in EventMgr

fixes issue where using EventItemAction during quests makes the player stuck casting
This commit is contained in:
Pinapelz 2024-05-12 11:21:04 -07:00
parent 8f408c4e5e
commit 3008404c22

View file

@ -552,6 +552,9 @@ void EventMgr::eventFinish( Sapphire::Entity::Player& player, uint32_t eventId,
if( player.hasCondition( Common::PlayerCondition::WatchingCutscene ) )
player.removeCondition( Common::PlayerCondition::WatchingCutscene );
if( player.hasCondition( Common::PlayerCondition::Casting ))
player.removeCondition( Common::PlayerCondition::Casting );
player.removeEvent( pEvent->getId() );