summaryrefslogtreecommitdiff
path: root/src/game/Entities/Unit/StatSystem.cpp
diff options
context:
space:
mode:
authorMatteo Emili <matteo.emili14@gmail.com>2017-01-23 02:27:50 +0100
committerYehonal <yehonal.azeroth@gmail.com>2017-03-26 01:09:34 +0100
commit15b1a99b55bf01cd6975cc4da3994778d36edb35 (patch)
treef3ff65ce7b0cf5775a34acf3c65ae4f40148f0bc /src/game/Entities/Unit/StatSystem.cpp
parentf3b2dd4f1f83d94b32625b23b51851b8c27cf7fd (diff)
New hook OnBeforeUpdateAttackPowerAndDamage
Diffstat (limited to 'src/game/Entities/Unit/StatSystem.cpp')
-rw-r--r--src/game/Entities/Unit/StatSystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Entities/Unit/StatSystem.cpp b/src/game/Entities/Unit/StatSystem.cpp
index 3518124e27..d1fb06a87a 100644
--- a/src/game/Entities/Unit/StatSystem.cpp
+++ b/src/game/Entities/Unit/StatSystem.cpp
@@ -312,6 +312,7 @@ void Player::UpdateAttackPowerAndDamage(bool ranged)
{
float val2 = 0.0f;
float level = float(getLevel());
+ sScriptMgr->OnBeforeUpdateAttackPowerAndDamage(this, level, ranged);
UnitMods unitMod = ranged ? UNIT_MOD_ATTACK_POWER_RANGED : UNIT_MOD_ATTACK_POWER;