*Fix Gift of the Naaru for classes other than shaman.
--HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -9844,10 +9844,10 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
|
|||||||
else // scripted bonus
|
else // scripted bonus
|
||||||
{
|
{
|
||||||
// Gift of the Naaru
|
// Gift of the Naaru
|
||||||
if (spellProto->Id==59547)
|
if (spellProto->SpellFamilyFlags[2] & 0x80000000 && spellProto->SpellIconID == 329)
|
||||||
{
|
{
|
||||||
scripted = true;
|
scripted = true;
|
||||||
uint32 apBonus = GetTotalAttackPowerValue(BASE_ATTACK);
|
int32 apBonus = std::max(GetTotalAttackPowerValue(BASE_ATTACK), GetTotalAttackPowerValue(RANGED_ATTACK));
|
||||||
if (apBonus > DoneAdvertisedBenefit)
|
if (apBonus > DoneAdvertisedBenefit)
|
||||||
{
|
{
|
||||||
DoneTotal += apBonus * stack;
|
DoneTotal += apBonus * stack;
|
||||||
|
|||||||
Reference in New Issue
Block a user