diff options
author | Trazom62 <none@none> | 2010-05-02 15:17:30 +0200 |
---|---|---|
committer | Trazom62 <none@none> | 2010-05-02 15:17:30 +0200 |
commit | 5ebee9fbd05bb9bcb9e6db9a66e5c9ad50f60adf (patch) | |
tree | c9a0bdc8a7ef04b321bd68f2a992415e422eaf88 /src | |
parent | 9664034eea52f8a2243278912fb58caf3c6ccf80 (diff) |
Fix crash in Gluth Script.
Fixes issue #1896.
--HG--
branch : trunk
Diffstat (limited to 'src')
-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; } |