690 {
693 {
694 std::list<uint32> removeList;
696 for (Unit::AuraMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
697 {
698 Aura* aura = itr->second;
700 {
701 continue;
702 }
703
704 removeList.push_back(aura->
GetId());
705 }
706
707 for (std::list<uint32>::const_iterator itr = removeList.begin(); itr != removeList.end(); ++itr)
708 {
709 target->RemoveAurasDueToSpell(*itr);
710 }
711 }
712 }
@ DISPEL_POISON
Definition: SharedDefines.h:1376
std::multimap< uint32, Aura * > AuraMap
Definition: Unit.h:635
Definition: SpellAuras.h:87
uint32 GetId() const
Definition: SpellAuras.cpp:466
SpellInfo const * GetSpellInfo() const
Definition: SpellAuras.h:100
uint32 SpellLevel
Definition: SpellInfo.h:360
uint32 Dispel
Definition: SpellInfo.h:322
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetHitUnit()
Definition: SpellScript.cpp:448