Thread Tools Display Modes
02/03/16, 02:21 AM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,973
Any chane to check if combat was started by myself, or a group member?

Hey all,

I know this was discussed several times in the past (without finding a real solution), but
after some combat events etc. changed in the past weeks/months I'd like to ask:

Is there any chance to see, as I get into combat, if I was the one who started the combat, or if someone in my group set me into combat because I got a buff from him, or if an enemy got me into combat due to any skill/aoe damage I've taken etc.?

With the event EVENT_COMBAT_EVENT it seems as if it was recently changed so you are only to see the values from your own fights.
EVENT_PLAYER_COMBAT_STATE will only help me to check if I'm in combat, but won#t tell me any reason.

Thanks for your help.
  Reply With Quote
02/03/16, 02:27 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Big butt detector ?

I don't think it could be possible with good precision.
You don't have access to coords, neither the aggro list, neither the skills casted by someoneelse, only their buffs.
  Reply With Quote
02/03/16, 05:35 AM   #3
coolmodi
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 47
If you ignore you pulling from beeing close to mobs you could just compare the time of the combat state changing with combat/effect events involving you happening.

That's ofc not 100% reliable, but I see no way of doing it better with what the API provides.
  Reply With Quote
02/03/16, 05:53 AM   #4
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
As coolmodi said, instead of asking "Did someone else put me into combat?", you could ask "Did I myself engage an enemy?". That should be pretty reliable as you can see all your own combat events. If you didn't do anything that switched the combat state on, you can assume someone else is responsible.
Of course it will require a lot of ifs to detect what you did...
  Reply With Quote
02/03/16, 06:21 AM   #5
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Very often, you engage an ennemy by staying in aggro range.

There is also the case of

Someone get into the aggro range "Heat meter of mob starts" he stays 0.5s
You get in the aggro range at T+0.4s, you stay in for 0.6s

At T+1s, you're in combat, even if you was only in the mob aggro rnge for 0.6s.
  Reply With Quote
02/03/16, 06:37 AM   #6
haggen
 
haggen's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2015
Posts: 137
How often the one that pulled aggro was the first to take a hit? Couldn't we just find out who took damage first?
  Reply With Quote
02/05/16, 10:08 AM   #7
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,973
Many thanks for all the replies.
Imo it'd be too much work to a "semi-reliable" result then.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Any chane to check if combat was started by myself, or a group member?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off