Scripts/ICC: Fix Shadow Prison

Fix Shadow Prison implementation, the control aura should not be cast on players.
Fix Shadow Prison aura remaining on players if they leave the instance during the encounter,
causing them to kill all nearby moving enemies including inside battlegrounds.
This commit is contained in:
Havenard
2011-10-09 21:06:47 -03:00
parent 3b4b6a2d9a
commit 5c5c1e3724
2 changed files with 2 additions and 19 deletions

View File

@@ -0,0 +1 @@
DELETE FROM `character_aura` WHERE `spell` = 73001;

View File

@@ -241,23 +241,7 @@ class boss_blood_council_controller : public CreatureScript
}
if (IsHeroic())
{
Map::PlayerList const &PlList = me->GetMap()->GetPlayers();
if (PlList.isEmpty())
return;
for (Map::PlayerList::const_iterator i = PlList.begin(); i != PlList.end(); ++i)
{
if (Player* player = i->getSource())
{
if (player->isGameMaster())
continue;
if (player->isAlive())
player->AddAura(SPELL_SHADOW_PRISON_DUMMY, player);
}
}
}
me->AddAura(SPELL_SHADOW_PRISON_DUMMY, me);
}
void SetData(uint32 /*type*/, uint32 data)
@@ -297,8 +281,6 @@ class boss_blood_council_controller : public CreatureScript
killer->Kill(prince);
}
}
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_SHADOW_PRISON_DUMMY);
}
void UpdateAI(uint32 const diff)