mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 08:46:09 +00:00
feat(Core/Scripting): Add hook for applying weapon damage (#20350)
Add hook for applying weapon damage
This commit is contained in:
@@ -6936,6 +6936,8 @@ void Player::_ApplyWeaponDamage(uint8 slot, ItemTemplate const* proto, ScalingSt
|
||||
|
||||
if (apply)
|
||||
{
|
||||
sScriptMgr->OnApplyWeaponDamage(this, slot, proto, minDamage, maxDamage, i);
|
||||
|
||||
if (minDamage > 0.f)
|
||||
{
|
||||
SetBaseWeaponDamage(WeaponAttackType(attType), MINDAMAGE, minDamage, i);
|
||||
|
||||
Reference in New Issue
Block a user