Core/Spells: Fix problem with stackable spells after last commit

This commit is contained in:
tobmaps
2011-05-22 06:12:25 +07:00
parent 78ea0075e1
commit 4b1464dc41

View File

@@ -1484,7 +1484,8 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask, bool
if (m_spellAura)
{
// Set aura stack amount to desired value
m_spellAura->SetStackAmount(m_spellValue->AuraStackAmount);
if (m_spellValue->AuraStackAmount > 1)
m_spellAura->SetStackAmount(m_spellValue->AuraStackAmount);
// Now Reduce spell duration using data received at spell hit
int32 duration = m_spellAura->GetMaxDuration();