From 3008404c22317103f96491752e2b82493dfe2998 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 12 May 2024 11:21:04 -0700 Subject: [PATCH] add remove condition casting in EventMgr fixes issue where using EventItemAction during quests makes the player stuck casting --- src/world/Manager/EventMgr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/world/Manager/EventMgr.cpp b/src/world/Manager/EventMgr.cpp index e2b87ef4..51861d85 100644 --- a/src/world/Manager/EventMgr.cpp +++ b/src/world/Manager/EventMgr.cpp @@ -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() );