Core/AI: 06443e3 followup

(cherry picked from commit bb9af06cd4ff80f078fcb6ae4871c74a1a174bcc)
This commit is contained in:
ccrs
2021-12-18 23:13:20 +01:00
committed by Shauren
parent 2f5d97b951
commit 50c90728b2
2 changed files with 40 additions and 24 deletions
@@ -188,6 +188,10 @@ struct TC_GAME_API ScriptedAI : public CreatureAI
void ResetThreatList(Unit* who = nullptr);
// Returns the threat level of victim towards who (or me if not specified)
float GetThreat(Unit const* victim, Unit const* who = nullptr);
// Stops combat, ignoring restrictions, for the given creature
void ForceCombatStop(Creature* who, bool reset = true);
// Stops combat, ignoring restrictions, for the found creatures
void ForceCombatStopForCreatureEntry(uint32 entry, float maxSearchRange = 250.0f, bool samePhase = true, bool reset = true);
void DoTeleportTo(float x, float y, float z, uint32 time = 0);
void DoTeleportTo(float const pos[4]);
@@ -339,8 +343,6 @@ class TC_GAME_API BossAI : public ScriptedAI
void TeleportCheaters();
void ForceCombatStopForCreatureEntry(uint32 entry, float maxSearchRange = 250.0f, bool reset = true);
EventMap events;
SummonList summons;
TaskScheduler scheduler;