From d9419b49b4c49190d1fb5ba5a7e76110700307ea Mon Sep 17 00:00:00 2001 From: NotAdam Date: Thu, 7 Mar 2019 22:41:05 +1100 Subject: [PATCH] fix casting stateflag not being unset after finishing a cast --- src/world/Action/Action.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/world/Action/Action.cpp b/src/world/Action/Action.cpp index 3d724529..6099f51c 100644 --- a/src/world/Action/Action.cpp +++ b/src/world/Action/Action.cpp @@ -272,6 +272,10 @@ void Sapphire::Action::Action::execute() 0x219, m_id, m_id, m_id, m_id ); m_pSource->sendToInRangeSet( control, true );*/ + if( auto player = m_pSource->getAsPlayer() ) + { + player->unsetStateFlag( PlayerStateFlag::Casting ); + } } if( !hasClientsideTarget() )