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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user