Detect the target of a spell menu

User Tag List

Results 1 to 3 of 3
  1. #1
    mastaflex2002's Avatar Member
    Reputation
    4
    Join Date
    Aug 2010
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detect the target of a spell

    Is there function to detect who a spell is targeting? For example if a player is using a macro to /cast [target=focus] Fireball

    would it be possible to detect who the focus target is? So for instance if you want to counterspell only when YOU are the target of a Fireball would it be possible to detect that you are the focus and then respond by casting counterspell? Thank you for the help.

    Detect the target of a spell
  2. #2
    Ssateneth's Avatar Contributor
    Reputation
    142
    Join Date
    May 2008
    Posts
    866
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Negative. With the current LUA functions ingame, this is impossible. The only function that returns information about what a player is casting is UnitCastingInfo which returns name, subText, text, texture, startTime, endTime, isTradeSkill, castID, notInterruptible = UnitCastingInfo("unit")

    You have to use your best judgement if the player is casting to his current target, or something else.

  3. #3
    mastaflex2002's Avatar Member
    Reputation
    4
    Join Date
    Aug 2010
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Blehmeh View Post
    Negative. With the current LUA functions ingame, this is impossible. The only function that returns information about what a player is casting is UnitCastingInfo which returns name, subText, text, texture, startTime, endTime, isTradeSkill, castID, notInterruptible = UnitCastingInfo("unit")

    You have to use your best judgement if the player is casting to his current target, or something else.
    Since the actuall spell target cant be detected how does the spellalerter addon detect who a player has targeted in arena. For example if Fireball is cast by arena1 then it will show Fireball is being cast and their current target (which of course is not necessarily the target of the spell).

Similar Threads

  1. Replies: 4
    Last Post: 07-23-2014, 03:19 PM
  2. [Lua] Mobs always cast spells on themselves. Not the target
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 08-17-2009, 09:12 AM
  3. Link the Kill Bill reference Spell from BRD
    By gryphons53 in forum World of Warcraft Exploits
    Replies: 16
    Last Post: 10-30-2008, 01:11 PM
  4. [New] The Target-Tracker Program
    By blubb12345 in forum World of Warcraft Bots and Programs
    Replies: 51
    Last Post: 09-07-2008, 10:51 PM
All times are GMT -5. The time now is 07:01 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search