diff options
Diffstat (limited to 'src/scripts')
| -rw-r--r-- | src/scripts/northrend/naxxramas/boss_gluth.cpp | 24 | 
1 files changed, 2 insertions, 22 deletions
diff --git a/src/scripts/northrend/naxxramas/boss_gluth.cpp b/src/scripts/northrend/naxxramas/boss_gluth.cpp index a57b171db87..ab6fa6c46d3 100644 --- a/src/scripts/northrend/naxxramas/boss_gluth.cpp +++ b/src/scripts/northrend/naxxramas/boss_gluth.cpp @@ -52,14 +52,6 @@ struct boss_gluthAI : public BossAI          me->ApplySpellImmune(0, IMMUNITY_ID, SPELL_INFECTED_WOUND, true);      } -    std::vector<Creature*> triggers; - -    void Reset() -    { -        triggers.clear(); -        _Reset(); -    } -      void MoveInLineOfSight(Unit *who)      {          if (who->GetEntry() == MOB_ZOMBIE && me->IsWithinDistInMap(who, 7)) @@ -74,16 +66,6 @@ struct boss_gluthAI : public BossAI      void EnterCombat(Unit * /*who*/)      { -        for (uint32 i = 0; i < 3; ++i) -            if (Creature *trigger = DoSummon(WORLD_TRIGGER, PosSummon[i])) -                triggers.push_back(trigger); -        if (triggers.size() < 3) -        { -            error_log("Script Gluth: cannot summon triggers!"); -            EnterEvadeMode(); -            return; -        } -          _EnterCombat();          events.ScheduleEvent(EVENT_WOUND, 10000);          events.ScheduleEvent(EVENT_ENRAGE, 15000); @@ -94,9 +76,7 @@ struct boss_gluthAI : public BossAI      void JustSummoned(Creature *summon)      { -        if (summon->GetEntry() == WORLD_TRIGGER) -            summon->setActive(true); -        else if (summon->GetEntry() == MOB_ZOMBIE) +        if (summon->GetEntry() == MOB_ZOMBIE)              summon->AI()->AttackStart(me);          summons.Summon(summon);      } @@ -132,7 +112,7 @@ struct boss_gluthAI : public BossAI                      break;                  case EVENT_SUMMON:                      for (uint32 i = 0; i < RAID_MODE(1,2); ++i) -                        DoSummon(MOB_ZOMBIE, triggers[rand()%3]); +                        DoSummon(MOB_ZOMBIE, PosSummon[rand()%3]);                      events.ScheduleEvent(EVENT_SUMMON, 10000);                      break;              }  | 
