[11146] Proper damage for spells [68793] and [69050]

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Toinan67 2011-02-12 16:28:52 +02:00 committed by Ambal
parent 6bdbfc52d4
commit ec123b59a6
2 changed files with 15 additions and 1 deletions

View file

@ -380,6 +380,20 @@ void Spell::EffectSchoolDMG(SpellEffectIndex effect_idx)
case 67485:
damage += uint32(0.5f * m_caster->GetTotalAttackPowerValue(BASE_ATTACK));
break;
//Magic Bane normal (Forge of Souls - Bronjahm)
case 68793:
{
damage += uint32(unitTarget->GetMaxPower(POWER_MANA) / 2);
damage = std::min(damage, 10000);
break;
}
//Magic Bane heroic (Forge of Souls - Bronjahm)
case 69050:
{
damage += uint32(unitTarget->GetMaxPower(POWER_MANA) / 2);
damage = std::min(damage, 15000);
break;
}
}
break;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11145"
#define REVISION_NR "11146"
#endif // __REVISION_NR_H__