From 079b945a7dff0dcc46d932ab929b7fe6c64c8c03 Mon Sep 17 00:00:00 2001 From: click Date: Sun, 4 Jul 2010 15:55:05 +0200 Subject: 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 --- src/server/scripts/EasternKingdoms/wetlands.cpp | 2 +- src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/EasternKingdoms/wetlands.cpp b/src/server/scripts/EasternKingdoms/wetlands.cpp index 012792902a6..71ef6884449 100644 --- a/src/server/scripts/EasternKingdoms/wetlands.cpp +++ b/src/server/scripts/EasternKingdoms/wetlands.cpp @@ -62,7 +62,7 @@ struct npc_tapoke_slim_jahnAI : public npc_escortAI { case 2: if (me->HasStealthAura()) - me->RemoveAurasDueToSpell(SPELL_AURA_MOD_STEALTH); + me->RemoveAurasByType(SPELL_AURA_MOD_STEALTH); SetRun(); me->setFaction(FACTION_ENEMY); diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp index 5b33b893e41..e2eff5deb31 100644 --- a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp +++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp @@ -400,7 +400,7 @@ struct boss_kaelthasAI : public ScriptedAI { if (!me->getVictim() && Phase >= 4) { - who->RemoveAurasDueToSpell(SPELL_AURA_MOD_STEALTH); + who->RemoveAurasByType(SPELL_AURA_MOD_STEALTH); AttackStart(who); } else if (me->GetMap()->IsDungeon()) -- cgit v1.2.3