The-Sickness / Incoming-BG

AN Interface GUI for calling out Inc's by clicking a button
1 stars 0 forks source link

Alliance merced as Horde mix up #3

Closed Olioliolioo closed 11 months ago

Olioliolioo commented 11 months ago

When playing Alliance merced as Horde, it outs me as an Alliance merc. In IOC, if I do a call out, it identifies my own team (as a merc) as the incoming.

The-Sickness commented 11 months ago

Ok, I'll take a look and see about fixing that.

The-Sickness commented 11 months ago

Can you tell me if this happens if you use the buttons 1-4 and Zerg?

The-Sickness commented 11 months ago

Open the IncCallout.lua, look for this:

local function ButtonOnClick(self) local currentLocation = GetSubZoneText() local playerFaction = UnitFactionGroup("player") or "" local enemyFaction = playerFaction == "Alliance" and "Horde" or "Alliance" local message = self:GetText() .. " " .. enemyFaction .. " incoming at " .. currentLocation SendChatMessage(message, "INSTANCE_CHAT") end

Change it to this:

local function ButtonOnClick(self) if not isInBattleground() then print("You are not in a battleground.") return end

local currentLocation = GetSubZoneText()
local message = self:GetText() .. " Incoming at " .. currentLocation
SendChatMessage(message, "INSTANCE_CHAT")

end

Please let me know if this fixes the issue. I don't have time to play do to work.