mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 16:03:45 +00:00
feat(Core/AI): convert SelectAggroTarget to enum class (#9893)
This commit is contained in:
@@ -1772,7 +1772,7 @@ struct npc_coren_direbrew_sisters : public ScriptedAI
|
||||
})
|
||||
.Schedule(Seconds(2), [this](TaskContext mugChuck)
|
||||
{
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, false, -SPELL_HAS_DARK_BREWMAIDENS_BREW))
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 0.0f, false, -SPELL_HAS_DARK_BREWMAIDENS_BREW))
|
||||
{
|
||||
DoCast(target, SPELL_CHUCK_MUG);
|
||||
}
|
||||
|
||||
@@ -571,7 +571,7 @@ struct npc_hallows_end_soh : public ScriptedAI
|
||||
{
|
||||
scheduler.Schedule(6s, [this](TaskContext context)
|
||||
{
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 30.f, true))
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 30.f, true))
|
||||
{
|
||||
me->CastSpell(target, SPELL_HORSEMAN_CONFLAGRATION, false);
|
||||
target->CastSpell(target, SPELL_HORSEMAN_CONFLAGRATION_SOUND, true);
|
||||
@@ -1185,7 +1185,7 @@ struct boss_headless_horseman : public ScriptedAI
|
||||
}
|
||||
case EVENT_HORSEMAN_CONFLAGRATION:
|
||||
{
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0))
|
||||
{
|
||||
me->CastSpell(target, SPELL_HORSEMAN_CONFLAGRATION, false);
|
||||
target->CastSpell(target, SPELL_HORSEMAN_CONFLAGRATION_SOUND, true);
|
||||
|
||||
@@ -490,7 +490,7 @@ struct npc_love_in_air_hummel_helper : public ScriptedAI
|
||||
events.RepeatEvent(12000);
|
||||
break;
|
||||
case EVENT_SPELL_THROW:
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM))
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random))
|
||||
{
|
||||
Position pos(*me);
|
||||
me->Relocate(target);
|
||||
|
||||
Reference in New Issue
Block a user