What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Check unit casting on me?

tuanha

Well-Known Member
Joined
Nov 29, 2011
Messages
6,998
Reaction score
124
It's there anyway to check if the enemy player casting Scare Beast, Polymorph... ON ME?

A lot of player use /cast [@focus] Scare Beast or /cast [@mouseover] Scare Beast...

How to track that?

Thank you.
 
Just quickly, untested

Code:
public static bool IsCatingPolymorph
        {
            get
            {
                bool result = Me.GotTarget && Me.CurrentTarget.IsCasting && Me.CurrentTarget.CastingSpell.Mechanic == WoWSpellMechanic.Polymorphed;
                return result;
            }
        }
 
Just quickly, untested

Code:
public static bool IsCatingPolymorph
        {
            get
            {
                bool result = Me.GotTarget && Me.CurrentTarget.IsCasting && Me.CurrentTarget.CastingSpell.Mechanic == WoWSpellMechanic.Polymorphed;
                return result;
            }
        }
That'll just check if the current target is casting given spell - but not who's he's casting it on.
Code:
public static bool IsCatingPolymorph
        {
            get
            {
                bool result = Me.GotTarget && Me.CurrentTarget.CurrentTarget == Me && Me.CurrentTarget.IsCasting && Me.CurrentTarget.CastingSpell.Mechanic == WoWSpellMechanic.Polymorphed;
                return result;
            }
        }
That would check if the current target is targetting you - but there's no way to check who it's being cast on. (for example if he uses a focus macro to polymorph you, or it would also return true if he targets you while casting polymorph on someone else)
 
@fpsware & Inrego:
IsCatingPolymorph?
203.png
 
There's a wow addon name "Collectiv Spell Alert" which can alert who is casting something on who by reading the combat log.

It's possible for Honorbuddy to act according to combat log?
 
There's a wow addon name "Collectiv Spell Alert" which can alert who is casting something on who by reading the combat log.

It's possible for Honorbuddy to act according to combat log?

Events/Combat - WoWWiki - Your guide to the World of Warcraft
API COMBAT LOG EVENT - WoWWiki - Your guide to the World of Warcraft

Use

Code:
Lua.Events.AttachEvent(event, delegate);

If any of the above looks confusing to you it would be best if you steered cleared from this. Suffice to say there's no real "easy" solution to your problem but it is possible to do.
 
Back
Top