1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-28 20:27:46 +00:00

Aggro the player when hostile action is used.

This commit is contained in:
collett 2020-01-02 02:46:00 +09:00
parent f07ac7f6e5
commit f6bff46c9a

View file

@ -429,6 +429,8 @@ void Action::Action::buildEffects()
{ {
auto dmg = calcDamage( lutEntry.potency ); auto dmg = calcDamage( lutEntry.potency );
m_effectBuilder->damageTarget( actor, dmg.first, dmg.second ); m_effectBuilder->damageTarget( actor, dmg.first, dmg.second );
if ( dmg.first > 0 )
actor->onActionHostile( m_pSource );
} }
} }