Created new hook for AttackPower

This commit is contained in:
Matteo Emili
2017-01-26 15:17:22 +01:00
committed by Yehonal
parent 5eb789d4dc
commit 0cf5a7cc1a
3 changed files with 9 additions and 0 deletions

View File

@@ -312,6 +312,8 @@ void Player::UpdateAttackPowerAndDamage(bool ranged)
{
float val2 = 0.0f;
float level = float(getLevel());
sScriptMgr->OnBeforeUpdateAttackPowerAndDamage(this, level, val2, ranged);
UnitMods unitMod = ranged ? UNIT_MOD_ATTACK_POWER_RANGED : UNIT_MOD_ATTACK_POWER;