mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-26 03:27:44 +00:00
vs2019 really wants to add that space.
This commit is contained in:
parent
4623ed535a
commit
64f8be4512
3 changed files with 7 additions and 7 deletions
|
@ -217,12 +217,12 @@ bool Action::Action::update()
|
|||
return true;
|
||||
}
|
||||
|
||||
if ( m_pTarget == nullptr && m_targetId != 0 )
|
||||
if( m_pTarget == nullptr && m_targetId != 0 )
|
||||
{
|
||||
// try to search for the target actor
|
||||
for( auto actor : m_pSource->getInRangeActors( true ) )
|
||||
{
|
||||
if ( actor->getId() == m_targetId )
|
||||
if( actor->getId() == m_targetId )
|
||||
{
|
||||
m_pTarget = actor->getAsChara();
|
||||
break;
|
||||
|
@ -230,9 +230,9 @@ bool Action::Action::update()
|
|||
}
|
||||
}
|
||||
|
||||
if ( m_pTarget != nullptr )
|
||||
if( m_pTarget != nullptr )
|
||||
{
|
||||
if ( !m_pTarget->isAlive() )
|
||||
if( !m_pTarget->isAlive() )
|
||||
{
|
||||
// interrupt the cast if target died
|
||||
setInterrupted( Common::ActionInterruptType::RegularInterrupt );
|
||||
|
|
|
@ -2151,7 +2151,7 @@ bool Sapphire::Entity::Player::checkAction()
|
|||
|
||||
if( m_pCurrentAction->update() )
|
||||
{
|
||||
if ( m_pCurrentAction->isInterrupted() && m_pCurrentAction->getInterruptType() != Common::ActionInterruptType::DamageInterrupt )
|
||||
if( m_pCurrentAction->isInterrupted() && m_pCurrentAction->getInterruptType() != Common::ActionInterruptType::DamageInterrupt )
|
||||
{
|
||||
// we moved (or whatever not damage interrupt) so we don't want to execute queued cast
|
||||
m_pQueuedAction = nullptr;
|
||||
|
@ -2161,7 +2161,7 @@ bool Sapphire::Entity::Player::checkAction()
|
|||
if( hasQueuedAction() )
|
||||
{
|
||||
sendDebug( "Queued skill start: {0}", m_pQueuedAction->getId() );
|
||||
if ( m_pQueuedAction->hasCastTime() )
|
||||
if( m_pQueuedAction->hasCastTime() )
|
||||
{
|
||||
setCurrentAction( m_pQueuedAction );
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ void World::Manager::ActionMgr::bootstrapAction( Entity::Player& player,
|
|||
return;
|
||||
}
|
||||
|
||||
if ( player.getCurrentAction() )
|
||||
if( player.getCurrentAction() )
|
||||
{
|
||||
player.sendDebug( "Skill queued: {0}", currentAction->getId() );
|
||||
player.setQueuedAction( currentAction );
|
||||
|
|
Loading…
Add table
Reference in a new issue