feat(Core/AI): convert SelectAggroTarget to enum class (#9893)

This commit is contained in:
Kargatum
2021-12-29 05:13:12 +07:00
committed by GitHub
parent e928d8b67e
commit c81891fc11
236 changed files with 622 additions and 598 deletions

View File

@@ -86,7 +86,7 @@ public:
void SchedulePossession()
{
_scheduler.Schedule(20s, 30s, [this](TaskContext context){
if (Unit* possessTarget = SelectTarget(SELECT_TARGET_RANDOM, 1, 0, true, false))
if (Unit* possessTarget = SelectTarget(SelectTargetMethod::Random, 1, 0, true, false))
{
DoCast(possessTarget, SPELL_POSSESS, true);
DoCast(possessTarget, SPELL_POSSESSED, true);