mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
Created new hook for AttackPower
This commit is contained in:
@@ -894,6 +894,7 @@ class PlayerScript : public ScriptObject
|
||||
|
||||
virtual void OnAfterUpdateMaxHealth(Player* /*player*/, float& /*value*/) { }
|
||||
|
||||
virtual void OnBeforeUpdateAttackPowerAndDamage(Player* /*player*/, float& /*level*/, float& /*val2*/, bool /*ranged*/) { }
|
||||
virtual void OnAfterUpdateAttackPowerAndDamage(Player* /*player*/, float& /*level*/, float& /*base_attPower*/, float& /*attPowerMod*/, float& /*attPowerMultiplier*/, bool /*ranged*/) { }
|
||||
|
||||
};
|
||||
@@ -1209,6 +1210,7 @@ class ScriptMgr
|
||||
void OnAfterStoreOrEquipNewItem(Player* player, uint32 vendorslot, uint32 &item, uint8 count, uint8 bag, uint8 slot, ItemTemplate const* pProto, Creature* pVendor, VendorItem const* crItem, bool bStore);
|
||||
void OnAfterUpdateMaxPower(Player* player, Powers& power, float& value);
|
||||
void OnAfterUpdateMaxHealth(Player* player, float& value);
|
||||
void OnBeforeUpdateAttackPowerAndDamage(Player* player, float& level, float& val2, bool ranged);
|
||||
void OnAfterUpdateAttackPowerAndDamage(Player* player, float& level, float& base_attPower, float& attPowerMod, float& attPowerMultiplier, bool ranged);
|
||||
|
||||
public: /* GuildScript */
|
||||
|
||||
Reference in New Issue
Block a user