From 1fa51e5168bce813342aeda41d993ed5a4b21cf5 Mon Sep 17 00:00:00 2001 From: clidx <11454515+xclid@users.noreply.github.com> Date: Tue, 13 Jul 2021 00:51:09 +0800 Subject: [PATCH] fix(Scripts/Ulduar): Mimiron Summon Mine (#6833) --- .../Northrend/Ulduar/Ulduar/boss_mimiron.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp index 4a0b18ac0..c18bd4d95 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp @@ -30,6 +30,7 @@ enum SpellData NPC_PROXIMITY_MINE = 34362, SPELL_MINE_EXPLOSION_25 = 63009, SPELL_MINE_EXPLOSION_10 = 66351, + SPELL_SUMMON_PROXIMITY_MINE = 65347, // PHASE 2: SPELL_HEAT_WAVE = 64533, @@ -1158,20 +1159,9 @@ public: events.ScheduleEvent(EVENT_PROXIMITY_MINES_1, 8000); break; case EVENT_PROXIMITY_MINES_1: + for (uint8 i = 0; i < 10; ++i) { - float angle = rand_norm() * 2 * M_PI; - float x, y, z; - me->GetPosition(x, y, z); - for( uint8 i = 0; i < 17; ++i ) - { - if( i == 7 ) - continue; - - float v_xmin = 0.1f * cos( angle + i * M_PI / 9 ); - float v_ymin = 0.1f * sin( angle + i * M_PI / 9 ); - if( Creature* pmNPC = me->SummonCreature(NPC_PROXIMITY_MINE, x + v_xmin, y + v_ymin, z, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 40000) ) - pmNPC->KnockbackFrom(x, y, 6.0f, 25.0f); - } + me->CastSpell(me, SPELL_SUMMON_PROXIMITY_MINE, true); } break; case EVENT_FLAME_SUPPRESSION_50000: