mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 04:32:35 -04:00
game/AI: Convert SelectAggroTarget to enum class (#24818)
* game/AI: Convert SelectAggroTarget to enum class * game/AI: Rename SelectAggroTarget to SelectTargetMethod
This commit is contained in:
committed by
GitHub
parent
60e813df6b
commit
418c3b1fd5
@@ -637,7 +637,7 @@ void WorldBossAI::_JustDied()
|
||||
|
||||
void WorldBossAI::_JustEngagedWith()
|
||||
{
|
||||
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true);
|
||||
Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true);
|
||||
if (target)
|
||||
AttackStart(target);
|
||||
}
|
||||
@@ -645,7 +645,7 @@ void WorldBossAI::_JustEngagedWith()
|
||||
void WorldBossAI::JustSummoned(Creature* summon)
|
||||
{
|
||||
summons.Summon(summon);
|
||||
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true);
|
||||
Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 0.0f, true);
|
||||
if (target)
|
||||
summon->AI()->AttackStart(target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user