add mounted load condition, add more wow api for load and organize it better

This commit is contained in:
NoM0Re
2025-03-03 13:55:49 +01:00
parent 049dae9b04
commit 57b67eca07
3 changed files with 52 additions and 32 deletions
+9 -3
View File
@@ -972,6 +972,15 @@ Private.load_prototype = {
optional = true,
events = {"VEHICLE_UPDATE", "UNIT_ENTERED_VEHICLE", "UNIT_EXITED_VEHICLE"}
},
{
name = "mounted",
display = L["Mounted"],
type = "tristate",
init = "arg",
width = WeakAuras.normalWidth,
optional = true,
events = {"MOUNTED_UPDATE"}
},
{
name ="playerTitle",
display = L["Player"],
@@ -7429,9 +7438,6 @@ Private.event_prototypes = {
if (trigger.use_ismoving ~= nil) then
WeakAuras.WatchPlayerMoveSpeed();
end
if (trigger.use_mounted ~= nil) then
WeakAuras.WatchForMounts();
end
if (trigger.use_HasPet ~= nil) then
AddWatchedUnits("pet")
end