mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
feat(core): add hooks for applying item mods (#18760)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user