mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
fix(Scripts/Ulduar): Mimiron Summon Mine (#6833)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user