From 2ca1b3fceaae4035afd1d7244d6f258d383ace86 Mon Sep 17 00:00:00 2001 From: sixsixnine Date: Sun, 6 Jun 2010 19:00:02 +0400 Subject: [PATCH] [10037] Fixed poison consume by spell 32645 and ranks. It will consume only caster casted poisons. Signed-off-by: VladimirMangos --- src/game/SpellEffects.cpp | 6 +++--- src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index d0cc3873b..1f34ca59f 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -596,15 +596,15 @@ void Spell::EffectSchoolDMG(SpellEffectIndex effect_idx) } } - if(needConsume) + if (needConsume) for (uint32 i = 0; i < doses; ++i) - unitTarget->RemoveSingleSpellAurasFromStack(spellId); + unitTarget->RemoveSingleSpellAurasByCasterSpell(spellId, m_caster->GetGUID()); damage *= doses; damage += int32(((Player*)m_caster)->GetTotalAttackPowerValue(BASE_ATTACK) * 0.09f * doses); } // Eviscerate and Envenom Bonus Damage (item set effect) - if(m_caster->GetDummyAura(37169)) + if (m_caster->GetDummyAura(37169)) damage += ((Player*)m_caster)->GetComboPoints()*40; } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 86ae0b099..4b75e4ff9 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10036" + #define REVISION_NR "10037" #endif // __REVISION_NR_H__