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

@@ -82,7 +82,7 @@ public:
events.Reset();
}
void EnterCombat(Unit* /*who*/) override
void JustEngagedWith(Unit* /*who*/) override
{
DoZoneInCombat();
Talk(SAY_AGGRO);

View File

@@ -83,7 +83,7 @@ public:
events.Reset();
}
void EnterCombat(Unit* who) override
void JustEngagedWith(Unit* who) override
{
DoZoneInCombat();
Talk(SAY_AGGRO);
@@ -257,7 +257,7 @@ public:
events.Reset();
}
void EnterCombat(Unit* who) override
void JustEngagedWith(Unit* who) override
{
DoZoneInCombat();
events.Reset();

View File

@@ -153,7 +153,7 @@ public:
me->CastSpell(plr, spellId, triggered);
}
void EnterCombat(Unit* /*who*/) override
void JustEngagedWith(Unit* /*who*/) override
{
bIsExploded = false;
bIsFrenzy = false;

View File

@@ -67,7 +67,7 @@ public:
events.Reset();
}
void EnterCombat(Unit* /*who*/) override
void JustEngagedWith(Unit* /*who*/) override
{
DoZoneInCombat();
events.Reset();

View File

@@ -70,7 +70,7 @@ public:
events.Reset();
}
void EnterCombat(Unit* /*who*/) override
void JustEngagedWith(Unit* /*who*/) override
{
DoZoneInCombat();
me->CastSpell(me, SPELL_RAY_OF_SUFFERING, true);

View File

@@ -85,7 +85,7 @@ public:
spheres.DespawnAll();
}
void EnterCombat(Unit* /*who*/) override
void JustEngagedWith(Unit* /*who*/) override
{
Talk(SAY_AGGRO);
DoZoneInCombat();

View File

@@ -81,7 +81,7 @@ public:
summons.DespawnAll();
}
void EnterCombat(Unit* /*who*/) override
void JustEngagedWith(Unit* /*who*/) override
{
Talk(SAY_AGGRO);
DoZoneInCombat();

View File

@@ -275,7 +275,7 @@ struct violet_hold_trashAI : public npc_escortAI
c->RemoveAura(SPELL_DESTROY_DOOR_SEAL, me->GetGUID());
}
void EnterCombat(Unit* who) override
void JustEngagedWith(Unit* who) override
{
if (!who->HasUnitFlag(UNIT_FLAG_NOT_SELECTABLE))
{