diff options
| author | Shauren <shauren.trinity@gmail.com> | 2021-08-19 16:28:39 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-08-19 16:28:39 +0200 |
| commit | 50ab4254a3a4d1131859e0304d473b587a4886f1 (patch) | |
| tree | 37bbd0bbbf4fcad93b2a5ef0c7faffaab89bb211 /src | |
| parent | e2f20aff8ab3f526f513203e08915e7291386f50 (diff) | |
Scripts: Fix warnings introduced in 7360c2d1567be05f81bdb51d0b74f5fd4e263d6a
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp | 6 |
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 055884e14d9..56034deaaf0 100644 --- a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp +++ b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/boss_herald_volazj.cpp @@ -486,7 +486,7 @@ struct npc_twisted_visage : public ScriptedAI case 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); @@ -550,7 +550,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); @@ -611,7 +611,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); |
