mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +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:
@@ -128,7 +128,7 @@ public:
|
||||
instance->SetData(DATA_KAELTHAS_EVENT, DONE);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
instance->SetData(DATA_KAELTHAS_EVENT, IN_PROGRESS);
|
||||
me->SetInCombatWithZone();
|
||||
|
||||
@@ -147,7 +147,7 @@ public:
|
||||
++HelpersKilled;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
summons.DoZoneInCombat();
|
||||
@@ -336,7 +336,7 @@ struct boss_priestess_lackey_commonAI : public ScriptedAI
|
||||
ScriptedAI::EnterEvadeMode(why);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
if (Creature* delrissa = ObjectAccessor::GetCreature(*me, instance->GetGuidData(NPC_DELRISSA)))
|
||||
if (delrissa->IsAlive() && !delrissa->IsEngaged())
|
||||
@@ -434,9 +434,9 @@ public:
|
||||
{
|
||||
boss_kagani_nightstrikeAI(Creature* creature) : boss_priestess_lackey_commonAI(creature, AI_TYPE_MELEE) { }
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
boss_priestess_lackey_commonAI::EnterCombat(who);
|
||||
boss_priestess_lackey_commonAI::JustEngagedWith(who);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPELL_GOUGE, 5500);
|
||||
events.ScheduleEvent(EVENT_SPELL_KICK, 9000);
|
||||
@@ -534,10 +534,10 @@ public:
|
||||
{
|
||||
boss_ellris_duskhallowAI(Creature* creature) : boss_priestess_lackey_commonAI(creature, AI_TYPE_RANGED) { }
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
me->CastSpell(me, SPELL_SUMMON_IMP, false);
|
||||
boss_priestess_lackey_commonAI::EnterCombat(who);
|
||||
boss_priestess_lackey_commonAI::JustEngagedWith(who);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPELL_IMMOLATE, 3000);
|
||||
events.ScheduleEvent(EVENT_SPELL_SHADOW_BOLT, 1000);
|
||||
@@ -612,9 +612,9 @@ public:
|
||||
{
|
||||
boss_eramas_brightblazeAI(Creature* creature) : boss_priestess_lackey_commonAI(creature, AI_TYPE_MELEE) { }
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
boss_priestess_lackey_commonAI::EnterCombat(who);
|
||||
boss_priestess_lackey_commonAI::JustEngagedWith(who);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPELL_KNOCKDOWN, 6000);
|
||||
events.ScheduleEvent(EVENT_SPELL_SNAP_KICK, 3000);
|
||||
@@ -686,9 +686,9 @@ public:
|
||||
{
|
||||
boss_yazzaiAI(Creature* creature) : boss_priestess_lackey_commonAI(creature, AI_TYPE_RANGED) { }
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
boss_priestess_lackey_commonAI::EnterCombat(who);
|
||||
boss_priestess_lackey_commonAI::JustEngagedWith(who);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPELL_POLYMORPH, 1000);
|
||||
events.ScheduleEvent(EVENT_SPELL_ICE_BLOCK, 1000);
|
||||
@@ -794,9 +794,9 @@ public:
|
||||
{
|
||||
boss_warlord_salarisAI(Creature* creature) : boss_priestess_lackey_commonAI(creature, AI_TYPE_MELEE) { }
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
boss_priestess_lackey_commonAI::EnterCombat(who);
|
||||
boss_priestess_lackey_commonAI::JustEngagedWith(who);
|
||||
me->CastSpell(me, SPELL_BATTLE_SHOUT, false);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPELL_DISARM, 6000);
|
||||
@@ -886,9 +886,9 @@ public:
|
||||
me->SummonCreature(NPC_SLIVER, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_CORPSE_DESPAWN, 0);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
boss_priestess_lackey_commonAI::EnterCombat(who);
|
||||
boss_priestess_lackey_commonAI::JustEngagedWith(who);
|
||||
me->CastSpell(me, SPELL_FREEZING_TRAP, true);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPELL_AIMED_SHOT, 8000);
|
||||
@@ -976,9 +976,9 @@ public:
|
||||
uint32 Healing_Wave_Timer;
|
||||
// uint32 Frost_Shock_Timer;
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
boss_priestess_lackey_commonAI::EnterCombat(who);
|
||||
boss_priestess_lackey_commonAI::JustEngagedWith(who);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPELL_TOTEM1, 2000);
|
||||
events.ScheduleEvent(EVENT_SPELL_TOTEM2, 4000);
|
||||
@@ -1067,9 +1067,9 @@ public:
|
||||
{
|
||||
boss_zelfanAI(Creature* creature) : boss_priestess_lackey_commonAI(creature, AI_TYPE_RANGED) { }
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
boss_priestess_lackey_commonAI::EnterCombat(who);
|
||||
boss_priestess_lackey_commonAI::JustEngagedWith(who);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPELL_DRAGON_GUN, 20000);
|
||||
events.ScheduleEvent(EVENT_SPELL_ROCKET_LAUNCH, 7000);
|
||||
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
me->SetPower(POWER_MANA, 0);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
instance->SetData(DATA_SELIN_EVENT, IN_PROGRESS);
|
||||
|
||||
@@ -104,7 +104,7 @@ public:
|
||||
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_ENERGY_FEEDBACK);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
instance->SetData(DATA_VEXALLUS_EVENT, IN_PROGRESS);
|
||||
|
||||
Reference in New Issue
Block a user