[9845] Fix dispel damage for 30108 and ranks

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
pasdVn 2010-05-07 16:37:52 +03:00 committed by Laise
parent 68abd76c97
commit 2846ea21f1
2 changed files with 4 additions and 2 deletions

View file

@ -4175,7 +4175,9 @@ void Unit::RemoveSingleAuraDueToSpellByDispel(uint32 spellId, uint64 casterGUID,
{
if (Aura* dotAura = GetAura(SPELL_AURA_PERIODIC_DAMAGE,SPELLFAMILY_WARLOCK,UI64LIT(0x010000000000),0x00000000,casterGUID))
{
int32 damage = dotAura->GetModifier()->m_amount*9;
// use clean value for initial damage
int32 damage = dotAura->GetSpellProto()->CalculateSimpleValue(EFFECT_INDEX_0);
damage *= 9;
// Remove spell auras from stack
RemoveSingleSpellAurasByCasterSpell(spellId, casterGUID, AURA_REMOVE_BY_DISPEL);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9844"
#define REVISION_NR "9845"
#endif // __REVISION_NR_H__