mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-06 23:07:59 +00:00
New hook OnBeforeUpdateAttackPowerAndDamage
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user