File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/server/scripts/Northrend/Gundrak Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ struct boss_drakkari_colossus : public BossAI
145145 {
146146 if (me->HealthBelowPctDamaged (events.IsInPhase (COLOSSUS_PHASE_FIRST_ELEMENTAL_SUMMON) ? 5 : 50 , damage))
147147 {
148+ if ((int64 (me->GetHealth ()) - int64 (damage)) <= 0 )
149+ damage = me->GetHealth () - 1 ;
148150 events.SetPhase ((events.IsInPhase (COLOSSUS_PHASE_FIRST_ELEMENTAL_SUMMON) ? COLOSSUS_PHASE_SECOND_ELEMENTAL_SUMMON : COLOSSUS_PHASE_FIRST_ELEMENTAL_SUMMON));
149151
150152 // Freeze Colossus
@@ -197,10 +199,14 @@ struct boss_drakkari_colossus : public BossAI
197199
198200 void JustSummoned (Creature* summon) override
199201 {
200- BossAI::JustSummoned (summon);
201-
202- if (events.IsInPhase (COLOSSUS_PHASE_SECOND_ELEMENTAL_SUMMON))
202+ if (summon->GetEntry () == NPC_DRAKKARI_ELEMENTAL && events.IsInPhase (COLOSSUS_PHASE_SECOND_ELEMENTAL_SUMMON))
203+ {
203204 summon->SetHealth (summon->GetMaxHealth () / 2 );
205+ summon->LowerPlayerDamageReq (1 );
206+ DoZoneInCombat (summon);
207+ }
208+ else
209+ BossAI::JustSummoned (summon);
204210 }
205211};
206212
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ enum GDCreatureIds
6161 NPC_ECK_THE_FEROCIOUS = 29932 ,
6262 NPC_ALTAR_TRIGGER = 30298 ,
6363 NPC_RHINO_SPIRIT = 29791 ,
64- NPC_LIVING_MOJO = 29830
64+ NPC_LIVING_MOJO = 29830 ,
65+ NPC_DRAKKARI_ELEMENTAL = 29573
6566};
6667
6768enum GDGameObjectIds
You can’t perform that action at this time.
0 commit comments