C_SwingTimer. IsTargetWithinSwingRange
functionguessedavailable in: camelot
Whether the current target is within range of the player's auto attack for the given swing type. Auto attacks only ever apply to the current target, so no other unit can be queried.
function C_SwingTimer.IsTargetWithinSwingRange( swingType: PlayerSwingType): boolean?Parameters
| name | type |
|---|---|
swingType | PlayerSwingType |
Returns
isInRange · boolean? · Nil when no range check could be made, for example there is no target, the target cannot be attacked, or no weapon is equipped for the swing type. Nil must not be treated as out of range.
In wowlua's emulated client
guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SwingTimer system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.