Skip to content

Commit

Permalink
- removed ROF check for aggro meter as it is no longer a requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 20, 2024
1 parent 00e8080 commit a16df32
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2203,14 +2203,12 @@ function Utils.MATargetScan(radius, zradius)
if (xtSpawn.Distance() or 999) <= radius then
-- Check for lack of aggro and make sure we get the ones we haven't aggro'd. We can't
-- get aggro data from the spawn data type.
if Utils.HaveExpansion("EXPANSION_LEVEL_ROF") then
if xtSpawn.PctAggro() < 100 and Utils.IsTanking() then
-- Coarse check to determine if a mob is _not_ mezzed. No point in waking a mezzed mob if we don't need to.
if RGMercConfig.Constants.RGMezAnims:contains(xtSpawn.Animation()) then
RGMercsLogger.log_verbose("Have not fully aggro'd %s -- returning %s [%d]",
xtSpawn.CleanName(), xtSpawn.CleanName(), xtSpawn.ID())
return xtSpawn.ID() or 0
end
if xtSpawn.PctAggro() < 100 and Utils.IsTanking() then
-- Coarse check to determine if a mob is _not_ mezzed. No point in waking a mezzed mob if we don't need to.
if RGMercConfig.Constants.RGMezAnims:contains(xtSpawn.Animation()) then
RGMercsLogger.log_verbose("Have not fully aggro'd %s -- returning %s [%d]",
xtSpawn.CleanName(), xtSpawn.CleanName(), xtSpawn.ID())
return xtSpawn.ID() or 0
end
end

Expand Down

0 comments on commit a16df32

Please sign in to comment.