mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 04:37:04 +00:00
[11540] Fixed spell 59752 and some other impossibility cast in stun like states.
Original patch provided by darkstalker.
This commit is contained in:
parent
5cae1c2211
commit
2b79599986
4 changed files with 18 additions and 8 deletions
|
|
@ -713,12 +713,9 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura
|
|||
SpellAuraHolderMap& Auras = pVictim->GetSpellAuraHolderMap();
|
||||
for(SpellAuraHolderMap::const_iterator iter = Auras.begin(); iter != Auras.end();)
|
||||
{
|
||||
SpellEntry const *spell = iter->second->GetSpellProto();
|
||||
|
||||
if( spell->Mechanic == MECHANIC_STUN ||
|
||||
iter->second->HasMechanic(MECHANIC_STUN))
|
||||
if (iter->second->HasMechanic(MECHANIC_STUN))
|
||||
{
|
||||
pVictim->RemoveAurasDueToSpell(spell->Id);
|
||||
pVictim->RemoveAurasDueToSpell(iter->second->GetId());
|
||||
iter = Auras.begin();
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue