mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 16:37:45 +00:00
Apply effect to correct target
This commit is contained in:
parent
78acb58d8f
commit
6fce046225
1 changed files with 1 additions and 1 deletions
|
@ -614,7 +614,7 @@ void Action::Action::handleStatusEffects()
|
|||
for( auto& status : m_lutEntry.statuses.caster )
|
||||
{
|
||||
if( m_hitActors.size() > 0 )
|
||||
getEffectbuilder()->applyStatusEffect( m_pSource, status.id, 0, true );
|
||||
getEffectbuilder()->applyStatusEffect( m_hitActors[ 0 ], status.id, 0, true );
|
||||
else
|
||||
getEffectbuilder()->applyStatusEffect( m_pSource, status.id, 0 );
|
||||
m_pSource->addStatusEffectByIdIfNotExist( status.id, status.duration, *m_pSource, status.modifiers );
|
||||
|
|
Loading…
Add table
Reference in a new issue