Added first boss override script for balancing.

This commit is contained in:
2024-10-07 23:43:21 -04:00
parent a62df56099
commit 4a8731c876
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "CreatureAI.h"
#include "MpLogger.h"
class Ragefire_Bazzalan_Mythic : public CreatureScript
{
public:
Ragefire_Bazzalan_Mythic() : CreatureScript("Ragefire_Bazzalan_Mythic") { }
struct Ragefire_Bazzalan_MythicAI : public ScriptedAI
{
Ragefire_Bazzalan_MythicAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() override
{
MpLogger::debug(" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Ragefire Bazzalan Mythic reset, restoring custom health");
uint32 health = 1000000; // Ensure max health is reset if the boss resets
me->SetCreateHealth(health);
me->SetMaxHealth(health);
me->SetHealth(health);
me->ResetPlayerDamageReq();
me->SetModifierValue(UNIT_MOD_HEALTH, BASE_VALUE, (float)health);
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new Ragefire_Bazzalan_MythicAI(creature);
}
};
void AddSC_Ragefire_Bazzalan_Mythic()
{
new Ragefire_Bazzalan_Mythic();
}

View File

@@ -1,3 +1,5 @@
// #include "ScriptMgr.h"
// #include "Instances/Ragefire/boss_bazzalan.cpp"
void Addmod_mythic_plusScripts();
void Add_MP_AllCreatureScripts();
@@ -9,6 +11,9 @@ void Add_MP_PlayerScripts();
void Add_MP_UnitScripts();
void Add_MP_WorldScripts();
// Mythic custom encounters for mythic+ dungeons
void AddSC_Ragefire_Bazzalan_Mythic();
void Addmod_mythic_plusScripts()
{
Add_MP_AllCreatureScripts();
@@ -19,4 +24,7 @@ void Addmod_mythic_plusScripts()
// Add_MP_PlayerScripts();
Add_MP_UnitScripts();
Add_MP_WorldScripts();
// Boss custom changes for mythic+ dungeons
AddSC_Ragefire_Bazzalan_Mythic();
}