Jump to content

[fix]Glyph of Icy Veins


Recommended Posts

  • 39 years later...
Posted
Looks nice except the problem that you remove an aura while using AuraList::const_iterator. Take a look at other examples in the source how this should be done, there are many of them.

hmmm i found this (divine purpose)

        AuraMap& Auras = pVictim->GetAuras();
                   for(AuraMap::const_iterator iter = Auras.begin(); iter != Auras.end()
                   {
                       SpellEntry const *spell = iter->second->GetSpellProto();
                       if( spell->Mechanic == MECHANIC_STUN ||
                           spell->EffectMechanic[iter->second->GetEffIndex()] == MECHANIC_STUN)
                       {
                           pVictim->RemoveAurasDueToSpell(spell->Id);
                           iter = Auras.begin();
                       }
                       else
                           ++iter;
                   }

is this a better way to write haste part of the glyph?

  • 4 weeks later...
  • 2 years later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use