diff options
| author | click <none@none> | 2010-07-04 15:55:05 +0200 |
|---|---|---|
| committer | click <none@none> | 2010-07-04 15:55:05 +0200 |
| commit | 079b945a7dff0dcc46d932ab929b7fe6c64c8c03 (patch) | |
| tree | a862fa5b2dab3b5a71d308a5749538820cd0034f /src/server/game/AI | |
| parent | 599d957a263a722341aba4459ae2e5a2e2ed1a02 (diff) | |
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
Diffstat (limited to 'src/server/game/AI')
| -rw-r--r-- | src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp | 2 | ||||
| -rw-r--r-- | src/server/game/AI/ScriptedAI/ScriptedFollowerAI.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp index 0549858d1c7..84e2cff7e2f 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp @@ -104,7 +104,7 @@ void npc_escortAI::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()) diff --git a/src/server/game/AI/ScriptedAI/ScriptedFollowerAI.cpp b/src/server/game/AI/ScriptedAI/ScriptedFollowerAI.cpp index 6147edac45c..499e4611693 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedFollowerAI.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedFollowerAI.cpp @@ -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()) |
