refactor(Core/AI): Some more refactoring prep for Comat Threat system… (#15026)

Co-authored-by: Treeston <14020072+Treeston@users.noreply.github.com>
This commit is contained in:
Kitzunu
2023-02-13 21:39:40 +01:00
committed by GitHub
parent fdfa88093e
commit bd6034e1a9
391 changed files with 873 additions and 846 deletions

View File

@@ -30,7 +30,7 @@
#include "SpellAuraEffects.h"
#include "SpellScript.h"
// @todo: this import is not necessary for compilation and marked as unused by the IDE
/// @todo: this import is not necessary for compilation and marked as unused by the IDE
// however, for some reasons removing it would cause a damn linking issue
// there is probably some underlying problem with imports which should properly addressed
// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766

View File

@@ -46,7 +46,7 @@ struct npc_pet_shaman_earth_elemental : public ScriptedAI
{
npc_pet_shaman_earth_elemental(Creature* creature) : ScriptedAI(creature), _initAttack(true) { }
void EnterCombat(Unit*) override
void JustEngagedWith(Unit*) override
{
_events.Reset();
_events.ScheduleEvent(EVENT_SHAMAN_ANGEREDEARTH, 0);
@@ -91,7 +91,7 @@ struct npc_pet_shaman_fire_elemental : public ScriptedAI
void InitializeAI() override { }
void EnterCombat(Unit*) override
void JustEngagedWith(Unit*) override
{
_events.Reset();
_events.ScheduleEvent(EVENT_SHAMAN_FIRENOVA, urand(5000, 20000));