[7721] Fixed possible source crash at rogue stealth lost in some special cases.

This commit is contained in:
VladimirMangos 2009-04-27 00:30:45 +04:00
parent b9853cb958
commit 57002fa014
2 changed files with 3 additions and 3 deletions

View file

@ -3535,7 +3535,7 @@ void Aura::HandleModStealth(bool apply, bool Real)
else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags & 0x0000000000400000LL) else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags & 0x0000000000400000LL)
{ {
pTarget->RemoveAurasDueToSpell(58428); pTarget->RemoveAurasDueToSpell(58428);
pTarget->CastSpell(m_target, 58427, true); pTarget->CastSpell(pTarget, 58427, true);
} }
} }
} }
@ -3573,7 +3573,7 @@ void Aura::HandleModStealth(bool apply, bool Real)
pTarget->CastSpell(pTarget,31666,true); pTarget->CastSpell(pTarget,31666,true);
// Overkill // Overkill
else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags & 0x0000000000400000LL) else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags & 0x0000000000400000LL)
pTarget->CastSpell(m_target, 58428, true); pTarget->CastSpell(pTarget, 58428, true);
} }
} }
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7720" #define REVISION_NR "7721"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__