Skip to content

Commit c1d36d3

Browse files
committed
Scripts/Gundrak: followup bc68d01
1 parent b49f998 commit c1d36d3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/server/scripts/Northrend/Gundrak/boss_drakkari_colossus.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/server/scripts/Northrend/Gundrak/gundrak.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

6768
enum GDGameObjectIds

0 commit comments

Comments
 (0)