View Single Post
12/20/20, 10:54 AM   #10
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,019
Just did a few checks and this event only seems to trigger if YOU start a group election/ready check. But it does not (anymore maybe) if any of the group initiates it

But if you use this it works even if others srat an election:
EVENT_GROUP_ELECTION_NOTIFICATION_ADDED


Lua Code:
  1. EVENT_MANAGER:RegisterForEvent(FCOCS.addonVars.addonName .. "_GroupElection", EVENT_GROUP_ELECTION_NOTIFICATION_ADDED, function()
  2. if IsInCyrodiil() or IsInImperialCity() or IsUnitInDungeon("player") or IsPlayerInRaid() then return end
  3.         local groupElectionType, timeRemainingSeconds, electionDescriptor, targetUnitTag = GetGroupElectionInfo()
  4.         if electionDescriptor == ZO_GROUP_ELECTION_DESCRIPTORS.READY_CHECK then
  5.                  CastGroupVote(GROUP_VOTE_CHOICE_AGAINST)
  6.         end
  7. end)

Addon update is coming

Last edited by Baertram : 12/20/20 at 11:03 AM.
  Reply With Quote