mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-06 10:47:45 +00:00
Improve offensive action check
This commit is contained in:
parent
8bd74ba26e
commit
f001ee11b6
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ void Action::Action::applyStatusEffectSelf( StatusEntry& statusEntry, bool shoul
|
|||
void Action::Action::applyStatusEffectSelf( uint16_t statusId, int32_t duration, bool shouldOverride,
|
||||
std::vector< StatusModifier > modifiers, uint8_t param )
|
||||
{
|
||||
if( m_hitActors.size() > 0 )
|
||||
if( m_hitActors.size() > 0 && m_hitActors[ 0 ]->getObjKind() != m_pSource->getObjKind() )
|
||||
getActionResultBuilder()->applyStatusEffect( m_hitActors[ 0 ], statusId, duration, param, modifiers, shouldOverride, true );
|
||||
else
|
||||
getActionResultBuilder()->applyStatusEffect( m_pSource, statusId, duration, param, modifiers, shouldOverride );
|
||||
|
|
Loading…
Add table
Reference in a new issue