diff options
author | megamage <none@none> | 2009-05-25 12:51:14 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-25 12:51:14 -0500 |
commit | 00f50798d365c0318b10a012c8985edb3c1f87c7 (patch) | |
tree | c26543841923604c6bc4ea382a99127d971327fd /src/game/Spell.cpp | |
parent | dfd041dd578df2a7d431831aa00676ab6b543b97 (diff) | |
parent | fcbcf595113bb9b2c256fd5652adafa79ba89b78 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index bcca1f2c873..14f5a1d3319 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3018,6 +3018,10 @@ void Spell::finish(bool ok) if (m_caster->GetTypeId() == TYPEID_PLAYER) ((Player*)m_caster)->RemoveSpellMods(this); + // Okay to remove extra attacks + if(IsSpellHaveEffect(m_spellInfo, SPELL_EFFECT_ADD_EXTRA_ATTACKS)) + m_caster->m_extraAttacks = 0; + // Heal caster for all health leech from all targets if (m_healthLeech) m_caster->DealHeal(m_caster, uint32(m_healthLeech), m_spellInfo); @@ -3385,7 +3389,7 @@ void Spell::SendLogExecute() data.append(unit->GetPackGUID()); else data << uint8(0); - data << uint32(0); // count? + data << uint32(m_caster->m_extraAttacks); break; case SPELL_EFFECT_INTERRUPT_CAST: if(Unit *unit = m_targets.getUnitTarget()) |