aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-23 09:30:05 +0800
committermegamage <none@none>2009-07-23 09:30:05 +0800
commitf481e7b14db88700631c01c58b23a1a2f7f4efb6 (patch)
treea0f9d08fec1f7e2a69782d4902b378da7ffb3634 /src/game/Player.cpp
parente79656b75a3a4272f25457b11856f8ca9df29ba4 (diff)
[8191] Drop code related to use long time empty `spell_affect` table. Author: XTZGZoReX
After switch to 3.x.x all data get explcitly from ClassMask fields in spell.dbc and no need in custom values. --HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 41ed4882826..3f799b90352 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17387,11 +17387,7 @@ void Player::RemoveSpellMods(Spell * spell)
checkedSpells.find(aur->GetParentAura()) != checkedSpells.end())
continue;
- flag96 const * mask = spellmgr.GetSpellAffect(aur->GetId(), aur->GetEffIndex());
- if (!mask)
- mask = &spellInfo->EffectSpellClassMask[aur->GetEffIndex()];
-
- if (spell->m_spellInfo->SpellFamilyFlags & *mask)
+ if (spell->m_spellInfo->SpellFamilyFlags & spellInfo->EffectSpellClassMask[aur->GetEffIndex()])
{
checkedSpells.insert(aur->GetParentAura());
spell->m_appliedMods.erase(aur->GetParentAura());