From 5006a446b2414716abd5335932b351c52d9f0758 Mon Sep 17 00:00:00 2001
From: 55Honey <71938210+55Honey@users.noreply.github.com>
Date: Fri, 12 Nov 2021 21:29:14 +0100
Subject: [PATCH] chore: revert change to bossscript
---
.../BlackrockSpire/boss_drakkisath.cpp | 198 ------------------
1 file changed, 198 deletions(-)
delete mode 100644 src/Bracket_50_59_B/scripts/BlackrockSpire/boss_drakkisath.cpp
diff --git a/src/Bracket_50_59_B/scripts/BlackrockSpire/boss_drakkisath.cpp b/src/Bracket_50_59_B/scripts/BlackrockSpire/boss_drakkisath.cpp
deleted file mode 100644
index 99ffae7..0000000
--- a/src/Bracket_50_59_B/scripts/BlackrockSpire/boss_drakkisath.cpp
+++ /dev/null
@@ -1,198 +0,0 @@
-/*
- * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Affero General Public License as published by the
- * Free Software Foundation; either version 3 of the License, or (at your
- * option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program. If not, see .
- */
-
-#include "blackrock_spire.h"
-#include "ScriptedCreature.h"
-#include "ScriptMgr.h"
-
-enum Spells
-{
- SPELL_FLAMESTRIKE = 16419,
- SPELL_CLEAVE = 15284,
- SPELL_CONFLAGRATION = 16805,
- SPELL_THUNDERCLAP = 15548, //Not sure if right ID. 23931 would be a harder possibility.
- SPELL_RAGE = 16789,
- SPELL_PIERCE_ARMOR = 12097
-};
-
-enum Events
-{
- EVENT_FLAMESTRIKE = 1,
- EVENT_CLEAVE,
- EVENT_CONFLAGRATION,
- EVENT_THUNDERCLAP,
- EVENT_PIERCE_ARMOR,
- EVENT_RAGE
-};
-
-enum ChromaticEliteGuardEvents
-{
- EVENT_MORTAL_STRIKE = 1,
- EVENT_KNOCKDOWN = 2,
- EVENT_STRIKE = 3
-};
-
-enum ChromaticEliteGuardSpells
-{
- SPELL_MORTAL_STRIKE = 15708,
- SPELL_KNOCKDOWN = 16790,
- SPELL_STRIKE = 15580
-};
-
-class boss_drakkisath : public CreatureScript
-{
-public:
- boss_drakkisath() : CreatureScript("boss_drakkisath") { }
-
- struct boss_drakkisathAI : public BossAI
- {
- boss_drakkisathAI(Creature* creature) : BossAI(creature, DATA_GENERAL_DRAKKISATH) { }
-
- void Reset() override
- {
- _Reset();
- }
-
- void EnterCombat(Unit* /*who*/) override
- {
- _EnterCombat();
- events.ScheduleEvent(EVENT_FLAMESTRIKE, 6000);
- events.ScheduleEvent(EVENT_CLEAVE, 8000);
- events.ScheduleEvent(EVENT_CONFLAGRATION, 15000);
- events.ScheduleEvent(EVENT_THUNDERCLAP, 17000);
- events.ScheduleEvent(EVENT_PIERCE_ARMOR, 5000);
- events.ScheduleEvent(EVENT_RAGE, 1000);
- }
-
- void JustDied(Unit* /*killer*/) override
- {
- _JustDied();
- }
-
- void UpdateAI(uint32 diff) override
- {
- if (!UpdateVictim())
- return;
-
- events.Update(diff);
-
- if (me->HasUnitState(UNIT_STATE_CASTING))
- return;
-
- while (uint32 eventId = events.ExecuteEvent())
- {
- switch (eventId)
- {
- case EVENT_FLAMESTRIKE:
- DoCastAOE(SPELL_FLAMESTRIKE);
- events.ScheduleEvent(EVENT_FLAMESTRIKE, 10000);
- break;
- case EVENT_CLEAVE:
- DoCastVictim(SPELL_CLEAVE);
- events.ScheduleEvent(EVENT_CLEAVE, 8000);
- break;
- case EVENT_CONFLAGRATION:
- if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 50.0f, true))
- {
- DoCast(target, SPELL_CONFLAGRATION);
- }
- events.ScheduleEvent(EVENT_CONFLAGRATION, 9000);
- break;
- case EVENT_THUNDERCLAP:
- DoCastVictim(SPELL_THUNDERCLAP);
- events.ScheduleEvent(EVENT_THUNDERCLAP, 20000);
- break;
- case EVENT_PIERCE_ARMOR:
- DoCastVictim(SPELL_PIERCE_ARMOR);
- events.ScheduleEvent(EVENT_PIERCE_ARMOR, 40000);
- break;
- case EVENT_RAGE:
- DoCastSelf(SPELL_RAGE);
- events.ScheduleEvent(EVENT_RAGE, 35000);
- break;
- }
- }
- DoMeleeAttackIfReady();
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return GetBlackrockSpireAI(creature);
- }
-};
-
-class chromatic_elite_guard : public CreatureScript
-{
-public:
- chromatic_elite_guard() : CreatureScript("chromatic_elite_guard") { }
-
- struct chromatic_elite_guardAI : public ScriptedAI
- {
- chromatic_elite_guardAI(Creature* creature) : ScriptedAI(creature) { }
-
- EventMap _events;
-
- void EnterCombat(Unit* /*who*/) override
- {
- _events.Reset();
- _events.ScheduleEvent(EVENT_MORTAL_STRIKE, urand(5000, 12800));
- _events.ScheduleEvent(EVENT_KNOCKDOWN, urand(5600, 15400));
- _events.ScheduleEvent(EVENT_STRIKE, urand(12000, 20800));
- }
-
- void UpdateAI(uint32 diff) override
- {
- if (!UpdateVictim())
- return;
-
- _events.Update(diff);
-
- while (uint32 const eventId = _events.ExecuteEvent())
- {
- switch (eventId)
- {
- case EVENT_MORTAL_STRIKE:
- DoCastVictim(SPELL_MORTAL_STRIKE);
- _events.ScheduleEvent(EVENT_MORTAL_STRIKE, 13000);
- break;
- case EVENT_KNOCKDOWN:
- DoCastVictim(SPELL_KNOCKDOWN);
- _events.ScheduleEvent(EVENT_KNOCKDOWN, urand(11200, 25700));
- break;
- case EVENT_STRIKE:
- DoCastVictim(SPELL_STRIKE);
- _events.ScheduleEvent(EVENT_STRIKE, 9000);
- break;
- }
- }
-
- DoMeleeAttackIfReady();
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new chromatic_elite_guardAI(creature);
- }
-};
-
-void AddSC_boss_drakkisath()
-{
- new boss_drakkisath();
- new chromatic_elite_guard();
-}