mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 07:53:44 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user