mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-28 20:27:46 +00:00
Really fix sprint (and other scripted actions as well).
This commit is contained in:
parent
9b25a84c26
commit
12fd17e09c
1 changed files with 3 additions and 5 deletions
|
@ -391,8 +391,9 @@ void Action::Action::buildEffects()
|
||||||
snapshotAffectedActors( m_hitActors );
|
snapshotAffectedActors( m_hitActors );
|
||||||
|
|
||||||
auto pScriptMgr = m_pFw->get< Scripting::ScriptMgr >();
|
auto pScriptMgr = m_pFw->get< Scripting::ScriptMgr >();
|
||||||
|
auto hasLutEntry = ActionLut::validEntryExists( getId() );
|
||||||
|
|
||||||
if( !pScriptMgr->onExecute( *this ) && !ActionLut::validEntryExists( getId() ) )
|
if( !pScriptMgr->onExecute( *this ) && !hasLutEntry )
|
||||||
{
|
{
|
||||||
if( auto player = m_pSource->getAsPlayer() )
|
if( auto player = m_pSource->getAsPlayer() )
|
||||||
{
|
{
|
||||||
|
@ -402,10 +403,7 @@ void Action::Action::buildEffects()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getId() == 3) // fix sprint for now
|
if( !hasLutEntry || m_hitActors.empty() )
|
||||||
return;
|
|
||||||
|
|
||||||
if( m_hitActors.empty() )
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto lutEntry = ActionLut::getEntry( getId() );
|
auto lutEntry = ActionLut::getEntry( getId() );
|
||||||
|
|
Loading…
Add table
Reference in a new issue