aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-09-02 14:49:20 -0500
committermegamage <none@none>2009-09-02 14:49:20 -0500
commit73fde81744a395715ca965c9589f66883e220bca (patch)
tree8ccdff9b15b257111dd67e5dbf773f7df18e379f /src
parent8efb15c52a7e79c4f312b643ec7933e608effe47 (diff)
*Prevent the triggering spell to always consume one charge of fingers of frost. By Cleave
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index fa7c3d271e8..f90b571a498 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17553,7 +17553,9 @@ void Player::RemoveSpellMods(Spell * spell)
checkedSpells.find(aur->GetParentAura()) != checkedSpells.end())
continue;
- if (spell->m_spellInfo->SpellFamilyFlags & spellInfo->EffectSpellClassMask[aur->GetEffIndex()])
+ if (spell->m_spellInfo->SpellFamilyFlags & spellInfo->EffectSpellClassMask[aur->GetEffIndex()]
+ // this is for fingers of frost, look at spell::finish part, a charge will be taken by the triggering spell
+ && aur->GetParentAura()->GetAuraDuration() != aur->GetParentAura()->GetAuraMaxDuration())
{
checkedSpells.insert(aur->GetParentAura());
spell->m_appliedMods.erase(aur->GetParentAura());