aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-08-19 16:28:39 +0200
committerShauren <shauren.trinity@gmail.com>2022-03-13 14:27:30 +0100
commit9d437961a27a60d697067e2f3c1fc65029f66091 (patch)
treecb2fec67c368f0acecee146cb4b75c96d763cde1 /src
parent6b8d03d71e5511d0f2012eec3d11e578d03c2d0f (diff)
Scripts: Fix warnings introduced in 7360c2d1567be05f81bdb51d0b74f5fd4e263d6a
(cherry picked from commit 50ab4254a3a4d1131859e0304d473b587a4886f1)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp
index 972c9e0cbb8..c233968598b 100644
--- a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp
+++ b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp
@@ -492,7 +492,7 @@ struct npc_twisted_visage : public ScriptedAI
case TALENT_SPEC_WARRIOR_FURY:
_scheduler.Schedule(2s, [this](TaskContext intercept)
{
- if (Unit* target = SelectTarget(SelectTargetMethod::MaxThreat, 0, -8.f))
+ if (!me->IsWithinCombatRange(me->GetVictim(), 8.0f))
{
DoCastVictim(SPELL_TWISTED_VISAGE_INTERCEPT);
intercept.Repeat(12s);
@@ -556,7 +556,7 @@ struct npc_twisted_visage : public ScriptedAI
shoot.Repeat(1s, 4s);
}).Schedule(5s, [this](TaskContext disengage)
{
- if (Unit* target = SelectTarget(SelectTargetMethod::MaxThreat, 0, 4.f))
+ if (me->IsWithinCombatRange(me->GetVictim(), 4.0f))
{
DoCastVictim(SPELL_TWISTED_VISAGE_DISENGAGE);
disengage.Repeat(10s, 20s);
@@ -617,7 +617,7 @@ struct npc_twisted_visage : public ScriptedAI
case CLASS_DEATH_KNIGHT:
_scheduler.Schedule(5s, [this](TaskContext deathGrip)
{
- if (Unit* target = SelectTarget(SelectTargetMethod::MaxThreat, 0, -3.f))
+ if (!me->IsWithinCombatRange(me->GetVictim(), 3.0f))
{
DoCastVictim(SPELL_TWISTED_VISAGE_DEATH_GRIP);
deathGrip.Repeat(12s);