feat(core): add hooks for applying item mods (#18760)

This commit is contained in:
silviu20092
2024-05-18 11:02:57 +03:00
committed by GitHub
parent 6d6c7bed9b
commit 3988e9581d
5 changed files with 22 additions and 0 deletions

View File

@@ -6584,6 +6584,8 @@ void Player::_ApplyItemBonuses(ItemTemplate const* proto, uint8 slot, bool apply
statType = proto->ItemStat[i].ItemStatType;
val = proto->ItemStat[i].ItemStatValue;
sScriptMgr->OnApplyItemModsBefore(this, slot, apply, i, statType, val);
}
if (val == 0)