diff options
| author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-06-16 23:08:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-16 23:08:56 +0200 |
| commit | 418c3b1fd50664aad035bd975a65281e82ba2dea (patch) | |
| tree | 71878e2775bdbe99b8973745e9bb707d02b03869 /src/server/scripts/Outland/GruulsLair | |
| parent | 60e813df6b7dfe599266cf36ddd52ba204917267 (diff) | |
game/AI: Convert SelectAggroTarget to enum class (#24818)
* game/AI: Convert SelectAggroTarget to enum class
* game/AI: Rename SelectAggroTarget to SelectTargetMethod
Diffstat (limited to 'src/server/scripts/Outland/GruulsLair')
| -rw-r--r-- | src/server/scripts/Outland/GruulsLair/boss_gruul.cpp | 4 | ||||
| -rw-r--r-- | src/server/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/server/scripts/Outland/GruulsLair/boss_gruul.cpp b/src/server/scripts/Outland/GruulsLair/boss_gruul.cpp index da3b9fa92fe..26236e1b0e0 100644 --- a/src/server/scripts/Outland/GruulsLair/boss_gruul.cpp +++ b/src/server/scripts/Outland/GruulsLair/boss_gruul.cpp @@ -205,7 +205,7 @@ class boss_gruul : public CreatureScript // Hurtful Strike if (m_uiHurtfulStrike_Timer <= diff) { - Unit* target = SelectTarget(SELECT_TARGET_MAXTHREAT, 1); + Unit* target = SelectTarget(SelectTargetMethod::MaxThreat, 1); if (target && me->IsWithinMeleeRange(me->GetVictim())) DoCast(target, SPELL_HURTFUL_STRIKE); @@ -229,7 +229,7 @@ class boss_gruul : public CreatureScript // Cave In if (m_uiCaveIn_Timer <= diff) { - if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0)) + if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0)) DoCast(target, SPELL_CAVE_IN); if (m_uiCaveIn_StaticTimer >= 4000) diff --git a/src/server/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp b/src/server/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp index dc1da245554..d365c3e4f38 100644 --- a/src/server/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp +++ b/src/server/scripts/Outland/GruulsLair/boss_high_king_maulgar.cpp @@ -180,7 +180,7 @@ public: //Charging_Timer if (Charging_Timer <= diff) { - if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0)) + if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0)) { AttackStart(target); DoCast(target, SPELL_BERSERKER_C); @@ -290,7 +290,7 @@ public: //DeathCoil Timer /need correct timer if (DeathCoil_Timer <= diff) { - if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0)) + if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0)) DoCast(target, SPELL_DEATH_COIL); DeathCoil_Timer = 20000; } else DeathCoil_Timer -= diff; @@ -363,7 +363,7 @@ public: //GreaterPolymorph_Timer if (GreaterPolymorph_Timer <= diff) { - if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0)) + if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0)) DoCast(target, SPELL_GREATER_POLYMORPH); GreaterPolymorph_Timer = urand(15000, 20000); |
