Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.0.7] Macro command /cleartarget doesn't work synchronously #704

Open
gjfLeo opened this issue Jan 19, 2025 · 2 comments
Open

[11.0.7] Macro command /cleartarget doesn't work synchronously #704

gjfLeo opened this issue Jan 19, 2025 · 2 comments

Comments

@gjfLeo
Copy link

gjfLeo commented Jan 19, 2025

Here's a macro:

/cleartarget
/stopmacro [noexists]
/run print("Go")

The third line is supposed to not be executed in any case.

However, sometimes if the player selects a target at the beginning, executing this macro does clear the target, but the third line is also executed.
When I tested it, I selected an enemy target that was about 20 yards away and this was bound to happen. When I was about 60 yards away from the same target, or when I initially selected my player character as the target, this became never happen.

Replacing the third line with another command such as /cast also gets executed. But when replacing the first two lines with /clearfocus and /stopmacro [@focus,noexists], the third line never seems to be executed.

I play wow on the CN realm, so I'm sorry I can't submit an in-game report.

@gjfLeo gjfLeo changed the title [11.0.7] Macro /cleartarget doesn't work synchronously [11.0.7] Macro command /cleartarget doesn't work synchronously Jan 19, 2025
@Peterodox
Copy link

Were you by chance using SoftTarget/SoftInteract?

@gjfLeo
Copy link
Author

gjfLeo commented Jan 22, 2025

Were you by chance using SoftTarget/SoftInteract?

I use SoftInteract but not SoftTarget. (CVar SoftTargetEnemy == 1, SoftTargetInteract == 3)
I tried setting SoftTargetInteract to 1, but the problem persists.

BTW, I also found that if I put /run print(UnitGUID("target")) on the third line, it outputs nil. Replacing to softtarget/softenemy/softinteract does the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants