Use RemoveAurasByType() and not RemoveAuraDueToSpell() to remove iterated spellauras of a type - DueTospell() expects singular spellID

Thanks to Azazel for the heads up

--HG--
branch : trunk
This commit is contained in:
click
2010-07-04 15:55:05 +02:00
parent 599d957a26
commit 079b945a7d
4 changed files with 4 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ void FollowerAI::MoveInLineOfSight(Unit* pWho)
{
if (!me->getVictim())
{
pWho->RemoveAurasDueToSpell(SPELL_AURA_MOD_STEALTH);
pWho->RemoveAurasByType(SPELL_AURA_MOD_STEALTH);
AttackStart(pWho);
}
else if (me->GetMap()->IsDungeon())