View difference between Paste ID: cGKSQgKn and E1xNXEjj
SHOW: | | - or go back to the newest paste.
1
                    uint32 bestStat[4] =
2
                    {
3
                        _player->GetUInt32Value(PLAYER_FIELD_COMBAT_RATINGS + CR_MASTERY),
4
                        _player->GetUInt32Value(PLAYER_FIELD_COMBAT_RATINGS + CR_HASTE_MELEE),
5
                        _player->GetUInt32Value(PLAYER_FIELD_COMBAT_RATINGS + CR_VERSATILITY_HEALING_DONE),
6
                        _player->GetUInt32Value(PLAYER_FIELD_COMBAT_RATINGS + CR_CRIT_MELEE)
7
                    };
8
                    uint32 bestPct[4] =
9-
                    uint32 bestCR = 0;
9+
10
                        _player->GetRatingMultiplier(CR_MASTERY),
11
                        _player->GetRatingMultiplier(CR_HASTE_MELEE),
12
                        _player->GetRatingMultiplier(CR_VERSATILITY_HEALING_DONE),
13
                        _player->GetRatingMultiplier(CR_CRIT_MELEE)
14
                    };                    uint32 bestCR = 0;
15
16
                    for (size_t i = 0; i < 4; i++)
17
                    {
18
						bestPct[i]
19
                        if (bestStat[i] > bestCR)
20
                        {
21
                            bestCR = bestStat[i];
22
                        }
23
                    }
24
25
                    float bp = bestCR * _player->GetRatingMultiplier(???????);