mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-27 20:07:45 +00:00
Aggro the player when hostile action is used.
This commit is contained in:
parent
f07ac7f6e5
commit
f6bff46c9a
1 changed files with 2 additions and 0 deletions
|
@ -429,6 +429,8 @@ void Action::Action::buildEffects()
|
|||
{
|
||||
auto dmg = calcDamage( lutEntry.potency );
|
||||
m_effectBuilder->damageTarget( actor, dmg.first, dmg.second );
|
||||
if ( dmg.first > 0 )
|
||||
actor->onActionHostile( m_pSource );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue