fix(Scripts/IcecrownCitadel): Sindragosa shouldn't kill everything on… (#15602)

fix(Scripts/IcecrownCitadel): Sindragosa shouldn't kill everything on evade
This commit is contained in:
Skjalf
2023-03-27 03:43:38 -03:00
committed by GitHub
parent 85311fa559
commit a959942d82

View File

@@ -371,14 +371,6 @@ public:
void EnterEvadeMode(EvadeReason why) override
{
if (!me->HasUnitFlag(UNIT_FLAG_NON_ATTACKABLE)) // this flag is removed after she lands and can be engaged
{
const Map::PlayerList& pl = me->GetMap()->GetPlayers();
for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
if (Player* p = itr->GetSource())
if (p->IsAlive() && !p->IsGameMaster() && p->GetExactDist(&SindragosaLandPos) < 200.0f && !p->IsImmunedToDamageOrSchool(SPELL_SCHOOL_MASK_ALL))
Unit::Kill(me, p);
}
me->DisableRotate(false);
me->SetControlled(false, UNIT_STATE_ROOT);
BossAI::EnterEvadeMode(why);