General Updates and fixed (see commit description)

- Added the 'Remove Battleground Segments' option to the menu that opens when hovering over the erase button.
- Attempt to fix Battleground faction icons, shown on enemy players damage bars.
- Fixed custom scripts showing the damage text too close to the dps text.
- Lib OpenRaid updated.
- Framework Updated.
This commit is contained in:
Tercio Jose
2023-12-21 14:34:21 -03:00
parent 0bd0343034
commit 2efc5a58f8
9 changed files with 116 additions and 32 deletions
+15
View File
@@ -508,15 +508,22 @@ end
local checkValidNickname = function(nickname, playerName)
if (nickname and type(nickname) == "string") then
nickname = nickname:trim()
if (nickname == "" or nickname:len() < 2) then
return playerName
end
if (nickname:len() > 20) then
return playerName
end
if (not UnitIsInMyGuild(playerName)) then
return playerName
end
else
return playerName
end
return nickname
end
@@ -525,6 +532,8 @@ end
if (actorFlags) then
local _, zoneType = GetInstanceInfo()
--UnitIsInMyGuild
--on retail post 100200 patch, actorName is formatted as "name-realm"
--this is player actor
@@ -867,6 +876,12 @@ end
end
--enemy player
if (Details.zone_type == "pvp") then
if (bitBand(actorFlags, REACTION_HOSTILE) ~= 0) then --is hostile
newActor.enemy = true
end
end
if (newActor.classe == "UNGROUPPLAYER") then --is a player
if (bitBand(actorFlags, REACTION_HOSTILE) ~= 0) then --is hostile
newActor.enemy = true