mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-11 19:45:20 +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:
@@ -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