from retail

This commit is contained in:
NoM0Re
2025-01-16 16:44:32 +01:00
parent c080aa96d5
commit c133385b44
7 changed files with 37 additions and 19 deletions
+4
View File
@@ -149,6 +149,9 @@ local blockedFunctions = {
securecall = true,
DeleteCursorItem = true,
ChatEdit_SendText = true,
ChatEdit_ActivateChat = true,
ChatEdit_ParseText = true,
ChatEdit_OnEnterPressed = true,
}
local blockedTables = {
@@ -156,6 +159,7 @@ local blockedTables = {
SendMailMailButton = true,
SendMailMoneyGold = true,
MailFrameTab2 = true,
DEFAULT_CHAT_FRAME = true,
ChatFrame1 = true,
--WeakAurasSaved = true,
WeakAurasOptions = true,
+4 -1
View File
@@ -1791,8 +1791,11 @@ local function EventHandler(frame, event, arg1, arg2, ...)
elseif event == "PARTY_MEMBERS_CHANGED" or event == "RAID_ROSTER_UPDATE" then
for unit in GetAllUnits("group", true, "PlayersAndPets") do
RecheckActiveForUnitType("group", unit, deactivatedTriggerInfos)
if not UnitExistsFixed(unit) then
local exists = UnitExistsFixed(unit)
if not exists then
tinsert(unitsToRemove, unit)
elseif exists ~= existingUnits[unit] then
ScanGroupUnit(time, matchDataChanged, "group", unit)
end
end
elseif event == "UNIT_FLAGS" or event == "UNIT_NAME_UPDATE" or event == "PLAYER_FLAGS_CHANGED" then
+2 -2
View File
@@ -3069,7 +3069,7 @@ do
local function dbmEventCallback(event, ...)
if event == "DBM_TimerStart" then
local id, msg, duration, icon, timerType, spellId, dbmType = ...
local id, msg, duration, icon, timerType, spellId, dbmType, _, _, _, _, _, timerCount = ...
local now = GetTime()
local expirationTime = now + duration
bars[id] = bars[id] or {}
@@ -3080,7 +3080,7 @@ do
bar.icon = icon
bar.timerType = timerType
bar.spellId = tostring(spellId)
bar.count = msg:match("%((%d+)%)") or msg:match("(%d+)") or "0"
bar.count = timerCount and tostring(timerCount) or "0"
bar.dbmType = dbmType
local barOptions = DBM.ReleaseRevision >= 20220412000000 and DBT.Options or DBM.Bars.options
+9 -10
View File
@@ -7010,17 +7010,10 @@ Private.event_prototypes = {
tinsert(events, "RAID_ROSTER_UPDATE")
end
if trigger.use_instance_size ~= nil then
tinsert(events, "ZONE_CHANGED")
tinsert(events, "ZONE_CHANGED_INDOORS")
tinsert(events, "ZONE_CHANGED_NEW_AREA")
end
if trigger.use_instance_difficulty ~= nil then
if trigger.use_instance_difficulty ~= nil
or trigger.use_instance_size ~= nil
then
tinsert(events, "PLAYER_DIFFICULTY_CHANGED")
tinsert(events, "ZONE_CHANGED")
tinsert(events, "ZONE_CHANGED_INDOORS")
tinsert(events, "ZONE_CHANGED_NEW_AREA")
end
return {
@@ -7038,6 +7031,12 @@ Private.event_prototypes = {
tinsert(events, "PLAYER_MOVE_SPEED_UPDATE");
end
if trigger.use_instance_difficulty ~= nil
or trigger.use_instance_size ~= nil
then
tinsert(events, "WA_DELAYED_PLAYER_ENTERING_WORLD")
end
if (trigger.use_HasPet ~= nil) then
AddUnitChangeInternalEvents("pet", events);
end
+15 -6
View File
@@ -1343,12 +1343,21 @@ local function modify(parent, region, data)
local controlPoint = regionData.controlPoint
controlPoint:ClearAnchorPoint()
controlPoint:SetAnchorPoint(
data.selfPoint,
frame == "" and self.relativeTo or frame,
data.anchorPoint,
x + data.xOffset, y + data.yOffset
)
if frame == "" then
controlPoint:SetAnchorPoint(
data.selfPoint,
self,
data.selfPoint,
x, y
)
else
controlPoint:SetAnchorPoint(
data.selfPoint,
frame,
data.anchorPoint,
x + data.xOffset, y + data.yOffset
)
end
if show and frame ~= WeakAuras.HiddenFrames then
controlPoint:Show()
else
+1
View File
@@ -94,6 +94,7 @@ local function modify(parent, region, data)
--region.texture:SetRotation((data.rotation / 180) * math.pi);
local function GetRotatedPoints(degrees)
degrees = degrees or 0
local angle = rad(135 - degrees);
local vx = math.cos(angle);
local vy = math.sin(angle);
+2
View File
@@ -3046,6 +3046,8 @@ function Private.HandleChatAction(message_type, message, message_dest, message_d
message_dest = Private.ReplacePlaceHolders(message_dest, region, customFunc, useHiddenStates, formatters);
end
if message_dest_isunit == true then
-- send to server like retail doesnt work here
-- message_dest = GetUnitName(message_dest, true)
message_dest = UnitName(message_dest)
end
pcall(function() SendChatMessage(message, "WHISPER", nil, message_dest) end);