Skip to content

Commit 5d19a73

Browse files
committed
Distance check erros fix
1 parent 7f438f0 commit 5d19a73

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ConRO_DemonHunter.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Title:-|cffFFFFFFConRO|r- |cffA330C9Demon Hunter|r
2-
## Version: 10.2.0
2+
## Version: 10.2.1
33
## Author: Vae
44
## Interface: 100200
55
## Dependencies: ConRO

demonhunter.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function ConRO.DemonHunter.Under10(_, timeShift, currentSpell, gcd, tChosen, pvp
101101
--Conditions
102102
local _is_moving = ConRO:PlayerSpeed();
103103
local _enemies_in_melee, _target_in_melee = ConRO:Targets("Melee");
104-
local _target_in_10yrds = CheckInteractDistance("target", 3);
104+
local _enemies_in_10yrds, _target_in_10yrds = ConRO:Targets("10");
105105

106106
--Warnings
107107

@@ -134,7 +134,7 @@ function ConRO.DemonHunter.Under10Def(_, timeShift, currentSpell, gcd, tChosen,
134134
--Conditions
135135
local _is_moving = ConRO:PlayerSpeed();
136136
local _enemies_in_melee, _target_in_melee = ConRO:Targets("Melee");
137-
local _target_in_10yrds = CheckInteractDistance("target", 3);
137+
local _enemies_in_10yrds, _target_in_10yrds = ConRO:Targets("10");
138138

139139
--Warnings
140140

@@ -205,7 +205,7 @@ function ConRO.DemonHunter.Havoc(_, timeShift, currentSpell, gcd, tChosen, pvpCh
205205
--Conditions
206206
local _is_moving = ConRO:PlayerSpeed();
207207
local _enemies_in_melee, _target_in_melee = ConRO:Targets("Melee");
208-
local _target_in_10yrds = CheckInteractDistance("target", 3);
208+
local _enemies_in_10yrds, _target_in_10yrds = ConRO:Targets("10");
209209

210210
if _Metamorphosis_BUFF then
211211
_ChaosStrike_RDY = _ChaosStrike_RDY and _Annihilation_CD <= 0;
@@ -405,7 +405,7 @@ function ConRO.DemonHunter.HavocDef(_, timeShift, currentSpell, gcd, tChosen, pv
405405
--Conditions
406406
local _is_moving = ConRO:PlayerSpeed();
407407
local _enemies_in_melee, _target_in_melee = ConRO:Targets("Melee");
408-
local _target_in_10yrds = CheckInteractDistance("target", 3);
408+
local _enemies_in_10yrds, _target_in_10yrds = ConRO:Targets("10");
409409

410410
--Rotations
411411
if _Netherwalk_RDY and _Player_Percent_Health <= 25 then
@@ -474,7 +474,7 @@ function ConRO.DemonHunter.Vengeance(_, timeShift, currentSpell, gcd, tChosen, p
474474
--Conditions
475475
local _is_moving = ConRO:PlayerSpeed();
476476
local _enemies_in_melee, _target_in_melee = ConRO:Targets("Melee");
477-
local _target_in_10yrds = CheckInteractDistance("target", 3);
477+
local _enemies_in_10yrds, _target_in_10yrds = ConRO:Targets("10");
478478

479479
if tChosen[Ability.PreciseSigils.talentID] then
480480
_SigilofFlame_RDY = _SigilofFlamePS_RDY;
@@ -602,7 +602,7 @@ function ConRO.DemonHunter.VengeanceDef(_, timeShift, currentSpell, gcd, tChosen
602602
--Conditions
603603
local _is_moving = ConRO:PlayerSpeed();
604604
local _enemies_in_melee, _target_in_melee = ConRO:Targets("Melee");
605-
local _target_in_10yrds = CheckInteractDistance("target", 3);
605+
local _enemies_in_10yrds, _target_in_10yrds = ConRO:Targets("10");
606606

607607
--Rotations
608608
if _DemonSpikes_RDY and _DemonSpikes_CHARGES == _DemonSpikes_MAX_CHARGES then

0 commit comments

Comments
 (0)