[10037] Fixed poison consume by spell 32645 and ranks.

It will consume only caster casted poisons.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
sixsixnine 2010-06-06 19:00:02 +04:00 committed by VladimirMangos
parent 32bed90aa9
commit 2ca1b3fcea
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}
}