diff options
| author | Keader <keader.android@gmail.com> | 2017-04-03 10:02:13 -0300 |
|---|---|---|
| committer | funjoker <funjoker109@gmail.com> | 2020-04-27 12:25:52 +0200 |
| commit | f623fea9237d1a076f55aa49128201a59cb0045b (patch) | |
| tree | 45816f1cd27d4302cce0aa1e7cd6ad09ffb2e32a | |
| parent | f97c28f2f1deadd75a35631bb7ed878c6a1bec3f (diff) | |
Core/Scripts: Baltharus the Warborn make clone count more readable
*Also fixed issue that make Baltharus summons alot of clones when he is casting
(cherry picked from commit 58f2e62098f2c78b77b6b3851709c83f33e1cafd)
| -rw-r--r-- | src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp b/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp index c0aa45f1e21..445404ce961 100644 --- a/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp +++ b/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_baltharus_the_warborn.cpp @@ -75,7 +75,7 @@ class boss_baltharus_the_warborn : public CreatureScript struct boss_baltharus_the_warbornAI : public BossAI { boss_baltharus_the_warbornAI(Creature* creature) : BossAI(creature, DATA_BALTHARUS_THE_WARBORN), - _cloneCount(RAID_MODE<uint8>(1, 2, 2, 2)), _introDone(false) { } + _cloneCount(0), _introDone(false) { } void Reset() override { @@ -84,7 +84,7 @@ class boss_baltharus_the_warborn : public CreatureScript instance->SetData(DATA_BALTHARUS_SHARED_HEALTH, me->GetMaxHealth()); if (Creature* channelTarget = instance->GetCreature(DATA_CRYSTAL_CHANNEL_TARGET)) DoCast(channelTarget, SPELL_BARRIER_CHANNEL); - _cloneCount = RAID_MODE<uint8>(1, 2, 2, 2); + _cloneCount = 0; } void DoAction(int32 action) override @@ -104,7 +104,6 @@ class boss_baltharus_the_warborn : public CreatureScript DoCastSelf(SPELL_CLONE, true); DoCastSelf(SPELL_REPELLING_WAVE); Talk(SAY_CLONE); - --_cloneCount; break; } default: @@ -149,15 +148,24 @@ class boss_baltharus_the_warborn : public CreatureScript { if (GetDifficulty() == DIFFICULTY_10_N) { - if (me->HealthBelowPctDamaged(50, damage) && _cloneCount == 1) + if (me->HealthBelowPctDamaged(50, damage) && _cloneCount == 0) + { + _cloneCount++; events.ScheduleEvent(EVENT_CLONE, Milliseconds(1)); + } } else { - if (me->HealthBelowPctDamaged(66, damage) && _cloneCount == 2) + if (me->HealthBelowPctDamaged(66, damage) && _cloneCount == 0) + { + _cloneCount++; events.ScheduleEvent(EVENT_CLONE, Milliseconds(1)); + } else if (me->HealthBelowPctDamaged(33, damage) && _cloneCount == 1) + { + _cloneCount++; events.ScheduleEvent(EVENT_CLONE, Milliseconds(1)); + } } if (me->GetHealth() > damage) |
