mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[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:
parent
32bed90aa9
commit
2ca1b3fcea
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10036"
|
||||
#define REVISION_NR "10037"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue