[9453] Implement heal bonus from talent 62905 and ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
laise 2010-02-26 00:30:24 +03:00 committed by VladimirMangos
parent 010b0504b6
commit ac99fa4d6f
2 changed files with 15 additions and 2 deletions

View file

@ -2226,7 +2226,20 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
} }
} }
int32 bp = int32(count * m_caster->GetMaxHealth() * m_spellInfo->DmgMultiplier[0] / 100); int32 bp = int32(count * m_caster->GetMaxHealth() * m_spellInfo->DmgMultiplier[EFFECT_INDEX_0] / 100);
// Improved Death Strike (percent stored in not existed EFFECT_INDEX_2 effect base points)
Unit::AuraList const& auraMod = m_caster->GetAurasByType(SPELL_AURA_ADD_FLAT_MODIFIER);
for(Unit::AuraList::const_iterator iter = auraMod.begin(); iter != auraMod.end(); ++iter)
{
// only required spell have spellicon for SPELL_AURA_ADD_FLAT_MODIFIER
if ((*iter)->GetSpellProto()->SpellIconID == 2751 && (*iter)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT)
{
bp += (*iter)->GetSpellProto()->CalculateSimpleValue(EFFECT_INDEX_2) * bp / 100;
break;
}
}
m_caster->CastCustomSpell(m_caster, 45470, &bp, NULL, NULL, true); m_caster->CastCustomSpell(m_caster, 45470, &bp, NULL, NULL, true);
return; return;
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9452" #define REVISION_NR "9453"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__