Skip to content

[Core] - /cast [@focus] incorrect behaviour for shapeshift #24366

@TheSCREWEDSoftware

Description

@TheSCREWEDSoftware

Triage

Issue linked from CC: chromiecraft/chromiecraft#7341

Triage Notes:

AC: https://www.youtube.com/watch?v=hMJVfixDkfQ

TBC Classic PTR: https://www.youtube.com/watch?v=ETVI_x5ClsA

  • Be an alliance druid
  • Be level 80
  • .tele oldtown
  • Go into the dummies
  • .learn all my class
  • .cheat power

Make and use the following macros (2 macrros)

#showtooltip
/cast [@focus] Mangle (Bear)

and

#showtooltip
/cast [@focus] Faerie Fire (Feral)

Using the picture as reference:

Image
  • Select and right click the left dummy (the star) and Set Focus now target the right one (the skull)
  • Use the mangle macro [while targeting skull] sometimes, happens often not always, the mangle will try to target the focused target, it shouldn't
  • Use the fearie macro [while targeting skull], see that Star got the fearie fire, it shouldn't

Still happens in: AzerothCore rev. 987f05a 2026-01-09 11:26:34 +0000

Using TBC as a reference:

  • If you're targeting something that's not your focus targert and you use a melee (in shapeshift) while far away or you're facing away you will be prompted with "Out of range" or "Target needs to be infront of you", you're not able to cast it will not change your current target to the focus.

  • If you're targeting something that's not your focus target and you use a ranged (in shapeshift) while far away or you're facing away you will be prompted with "Out of range" or "Target needs to be infront of you", and if you're able to cast, it will cast on current target instead of focus

Both above: https://www.youtube.com/watch?v=ETVI_x5ClsA for Mangle and Fearie Fire (TBC)

  • If you're targeting something that's not your focus target and you use a ranged (not in shapeshift) while far away or you're facing away you will be prompted with "Out of range" or "Target needs to be infront of you", and if you're able to cast it will cast on focus instead of current target

And for moonfire: https://www.youtube.com/watch?v=2sHJ3ksJlzc

TDLR

Using a melee spell where the current selected target is not the focus, shouldn't do anything (TBC), In shapeshift

  • Currently, somtimes it clear your target (in AC) when you try using a melee spell. In shapeshift

Using a range spell where the current selected target is not the focus, should use it on current target (TBC) , In shapeshift

  • Currently, it always casts at the focus target (in AC), in Shapeshift

Using a range spell where the current selected target is not the focus, should use it on focus (TBC) , When not in shapeshift

  • Currently, same behaviour for AC.

Original Post Below:


What client do you play on?

enGB

Faction

Alliance

Content Phase:

Generic

Current Behaviour

It appears that when casting a mele ability on a unitId (tested with focus and mouseover), your target will be switched to that unitId.

2024-09-03_23-29-38.mp4

I have tested this with bash, mangle, as well as claw. Oddly enough, rogue hemorrhage does not exhibit this behavior.

Untitled_video_-_Made_with_Clipchamp_41.mp4

Expected Blizzlike Behaviour

casting on a unitId should not change your target

Source

https://wowpedia.fandom.com/wiki/Making_a_macro#Using_Focus
https://www.wowhead.com/guide/macro-guide-for-world-of-warcraft-6061
https://us.forums.blizzard.com/en/wow/t/macros-essential-information/21139 (section 4, a bit down [@Unit] is mentioned)

Steps to reproduce the problem

Easiest to do on training dummies.
Create a macro that casts a mele ability @Focus (for example)
set your focus, target something else, be out of range of both targets to ensure no autos are happening
press the macro and the target should change

Extra Notes

Lastly, it being a client side issue is a possibility, and it could also be related to auto attacks. I've at least noticed that attacking a target will prevent this from happening for as long as you're set to auto attack your target, once you're away for a bit and that stops, your target switches to the unitId again.

AC rev. hash/commit

chromiecraft@30a7901

Operating system

Ubuntu 22.04

Modules

Customizations

None

Server

ChromieCraft

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions