Core/Spells: Fix damage and combat log for spell Hand of Reckoning

This commit is contained in:
tobmaps
2011-05-10 20:27:08 +07:00
parent bd6750b4d0
commit 6edde93e75
3 changed files with 5 additions and 9 deletions

View File

@@ -3883,14 +3883,7 @@ void Spell::EffectTaunt(SpellEffIndex /*effIndex*/)
}
if (m_spellInfo->Id == 62124)
{
int32 damageDone = int32(1 + m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 0.5f);
bool is_crit = m_caster->isSpellCrit(unitTarget, m_spellInfo, m_spellSchoolMask, m_attackType);
if (is_crit)
damageDone *= 2;
m_caster->DealDamage(unitTarget, damageDone, NULL, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_HOLY, m_spellInfo, false);
m_caster->SendSpellNonMeleeDamageLog(unitTarget, m_spellInfo->Id, damageDone, SPELL_SCHOOL_MASK_HOLY, 0, 0, false, false, is_crit);
}
m_caster->CastSpell(unitTarget, 67485, true);
// Also use this effect to set the taunter's threat to the taunted creature's highest value
if (unitTarget->getThreatManager().getCurrentVictim())