689 {
692 {
693 std::list<uint32> removeList;
695 for (Unit::AuraMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
696 {
697 Aura* aura = itr->second;
699 {
700 continue;
701 }
702
703 removeList.push_back(aura->
GetId());
704 }
705
706 for (std::list<uint32>::const_iterator itr = removeList.begin(); itr != removeList.end(); ++itr)
707 {
708 target->RemoveAurasDueToSpell(*itr);
709 }
710 }
711 }
@ 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