mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
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:
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user