Refined cta and buffing so chars now use cast_buffs routine which doesn't need the cta_available logic. This routine also allows the casting delay to be kept separate from cta as the casting_delay is passed in. Failed buffs will now cause bot to exit game.

This commit is contained in:
Randi
2026-03-16 20:42:15 -04:00
parent d96eb2d34c
commit b03b2fd226
23 changed files with 111 additions and 109 deletions
+3 -5
View File
@@ -42,19 +42,17 @@ class Basic_Ranged(IChar):
mouse.move(*cast_pos_monitor)
mouse.click(button="right")
def pre_buff(self):
if Config().char["cta_available"]:
self._pre_buff_cta()
def cast_buffs(self, casting_delay: float):
if self._skill_hotkeys["buff_1"]:
keyboard.send(self._skill_hotkeys["buff_1"])
wait(0.5, 0.15)
mouse.click(button="right")
wait(0.5, 0.15)
wait(casting_delay, casting_delay)
if self._skill_hotkeys["buff_2"]:
keyboard.send(self._skill_hotkeys["buff_2"])
wait(0.5, 0.15)
mouse.click(button="right")
wait(0.5, 0.15)
wait(casting_delay, casting_delay)
#bosses