Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Fix issue #951 (prevent sorc from using telekinesis when entering A5_…
Browse files Browse the repository at this point in the history
…Portal)
  • Loading branch information
Ezro committed Jun 27, 2022
1 parent 50b3e92 commit 7f3ec49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/char/sorceress/sorceress.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def select_by_template(
# In case telekinesis is False or hotkey is not set, just call the base implementation
if SkillName.Telekinesis not in hotkeys.right_skill_key_map:
return super().select_by_template(template_type, success_func, timeout, threshold)
if type(template_type == list and "A5_PORTAL" in template_type):
return super().select_by_template(template_type, success_func, timeout, threshold)
if type(template_type) == list and "A5_STASH" in template_type:
# sometimes waypoint is opened and stash not found because of that, check for that
if is_visible(ScreenObjects.WaypointLabel):
Expand Down

0 comments on commit 7f3ec49

Please sign in to comment.