-
Elite User
Get a player's base attack power
How can i get a player's base attack power in Trinitycore? With Unit::GetTotalAttackPowerValue i can get the total amount, but i want to find the base AP without factoring in the gear and buffs. Is that possible?
-
Contributor
Try calling GetModifierValue like so:
Code:
float baseAttackPower = GetModifierValue(UNIT_MOD_ATTACK_POWER, BASE_VALUE);
Disclaimer: This is just me looking at the TrinityCore source code - I haven't tested it myself. ^^
-
Post Thanks / Like - 1 Thanks
stoneharry (1 members gave Thanks to Glusk for this useful post)
-
Elite User
I tried this, but it returns the same value as GetTotalAttackPowerValue.
-
Contributor
This looks more promising as it is used exactly the same way as you want to use it.
Last edited by Glusk; 12-03-2016 at 05:04 PM.
-
Post Thanks / Like - 1 Thanks
stoneharry (1 members gave Thanks to Glusk for this useful post)