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:
parent
8f408c4e5e
commit
3008404c22
1 changed files with 3 additions and 0 deletions
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue