Skip to content

Commit 13851a1

Browse files
committed
Update combatmode to work better with the new AutoTargetMode
With this change, using AutoTargetMode to engage you can also now run in if combatmode is set to melee. This significantly enhances utility in things like Odyssey Sheol farms.
1 parent 215d27f commit 13851a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cylibs/trust/roles/combat_mode.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function CombatMode:check_distance()
8282
local self_mob = windower.ffxi.get_mob_by_target('me')
8383
if target == nil or not battle_util.is_valid_target(target.id) then return end
8484

85-
if party_util.party_claimed(target.id) then
85+
if party_util.party_claimed(target.id) or (state.AutoTargetMode.value == "Auto" and Condition.check_conditions(L{InBattleCondition.new()}, windower.ffxi.get_player().index)) then
8686
if L{'Ranged'}:contains(state.CombatMode.value) then
8787
if target.distance:sqrt() < self.range_distance then
8888
self.action_queue:push_action(RunAwayAction.new(target.index, self.range_distance), true)

0 commit comments

Comments
 (0)