WoW API: GetDamageBonusStat

From AddOn Studio
Jump to navigation Jump to search

WoW API < GetDamageBonusStat

Synopsis[edit]

Returns the index value for the primary damage bonus statistic for the character executing the command.

1 = Strength (currently, everyone except Rogues and Hunters)
2 = Agility (currently, Rogues and Hunters only)
bonusStat = GetDamageBonusStat();

Arguments[edit]

none

Returns[edit]

index value of stat.
1 for Strength
2 for Agility

Example[edit]

/script SendChatMessage(GetDamageBonusStat());

Result[edit]

The player will say 1 or 2.

Details[edit]

None really. It's a simple straight forward function call that returns back a 1 or 2 depending on primary damage stat.