diff options
| author | megamage <none@none> | 2008-12-15 09:55:57 -0600 | 
|---|---|---|
| committer | megamage <none@none> | 2008-12-15 09:55:57 -0600 | 
| commit | 8a0ca6b6a1fbb5690a81c8158039a2800c50e1c8 (patch) | |
| tree | efe89b3d6080f3c3ce7bff442e1bd69b00451d3d /src/game/SpellEffects.cpp | |
| parent | 110537ffc2aeba03bdea506f8ee1f5a0f0a9a3ca (diff) | |
*Let talents such as focused mind have effect on counterspell effects.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 62605a4f7a7..66d810ce681 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4457,7 +4457,7 @@ void Spell::EffectHealMaxHealth(uint32 /*i*/)      m_healing+=heal;  } -void Spell::EffectInterruptCast(uint32 /*i*/) +void Spell::EffectInterruptCast(uint32 i)  {      if(!unitTarget)          return; @@ -4473,7 +4473,11 @@ void Spell::EffectInterruptCast(uint32 /*i*/)              // check if we can interrupt spell              if ( unitTarget->m_currentSpells[i]->m_spellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_INTERRUPT && unitTarget->m_currentSpells[i]->m_spellInfo->PreventionType == SPELL_PREVENTION_TYPE_SILENCE )              { -                unitTarget->ProhibitSpellScholl(GetSpellSchoolMask(unitTarget->m_currentSpells[i]->m_spellInfo), GetSpellDuration(m_spellInfo)); +                if(m_originalCaster) +                { +                    int32 duration = m_originalCaster->CalculateSpellDuration(m_spellInfo, i, unitTarget); +                    unitTarget->ProhibitSpellScholl(GetSpellSchoolMask(unitTarget->m_currentSpells[i]->m_spellInfo), duration/*GetSpellDuration(m_spellInfo)*/); +                }                  unitTarget->InterruptSpell(i,false);              }          } | 
