diff options
| author | QAston <none@none> | 2009-08-28 22:37:52 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-08-28 22:37:52 +0200 |
| commit | 13421a194d127157fb74c54327b8c785801234aa (patch) | |
| tree | f37ba39a2b39a5d9e5436ad735f986df940a2641 /src | |
| parent | 64760208f20bed8e141d1bdb72fdd4833baa9c03 (diff) | |
*Fix Gift of the Naaru for classes other than shaman.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 7c404474908..d85c67720ce 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9844,13 +9844,13 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint else // scripted bonus { // Gift of the Naaru - if (spellProto->Id==59547) + if (spellProto->SpellFamilyFlags[2] & 0x80000000 && spellProto->SpellIconID == 329) { scripted = true; - uint32 apBonus = GetTotalAttackPowerValue(BASE_ATTACK); + int32 apBonus = std::max(GetTotalAttackPowerValue(BASE_ATTACK), GetTotalAttackPowerValue(RANGED_ATTACK)); if (apBonus > DoneAdvertisedBenefit) { - DoneTotal+=apBonus * stack; + DoneTotal += apBonus * stack; coeff = 0.0f; } else |
