mangosR2/mangos — Issue #834: Gift Of the naruu
Author: raynar
Created: 2012-03-09 13:48:42+00:00
State: open

This spell are bugged with "AP" classes like hunter, warrior...

I've been looking the code:

// Gift of the Naaru (have diff spellfamilies)
if (GetSpellProto()->SpellIconID == 329 && GetSpellProto()->SpellVisual[0] == 7625)
{
int32 ap = int32 (0.22f * caster->GetTotalAttackPowerValue(BASE_ATTACK));
int32 holy = caster->SpellBaseDamageBonusDone(GetSpellSchoolMask(GetSpellProto()));
if (holy < 0)
holy = 0;
holy = int32(holy * 377 / 1000);
m_modifier.m_amount += ap > holy ? ap : holy;
}

And with 4875 ap it does ticks of 247 and should be 1047.

In the code all seems ok. Maybe caster->GetTotalAttackPowerValue(BASE_ATTACK) is wrong?