Core/Unit: Fix remove Spell Immunity

This commit is contained in:
zwerg
2011-06-10 08:18:27 +02:00
parent 3a5e3e71a4
commit 94397e5b2e
+1 -2
View File
@@ -11895,14 +11895,13 @@ void Unit::ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply)
{
for (SpellImmuneList::iterator itr = m_spellImmune[op].begin(); itr != m_spellImmune[op].end(); ++itr)
{
if (itr->spellId == spellId)
if (itr->spellId == spellId && itr->type == type)
{
m_spellImmune[op].erase(itr);
break;
}
}
}
}
void Unit::ApplySpellDispelImmunity(const SpellEntry * spellProto, DispelType type, bool apply)