correct setWeatherAlwaysClear

This commit is contained in:
Brues
2026-08-15 01:56:14 -05:00
parent ac0ac38038
commit c6dfd6d6be
+7 -1
View File
@@ -374,7 +374,13 @@ local function UnitXP_SP3_setShowInCombatNameplatesNearPlayer(enable)
end
local function UnitXP_SP3_setWeatherAlwaysClear(enable)
local test, result = pcall(UnitXP, "weatherAlwaysClear", enable.."Rain");
local subcmd;
if enable == "enable" then
subcmd = "disableRain";
else
subcmd = "enableRain";
end
local test, result = pcall(UnitXP, "weatherAlwaysClear", subcmd);
if not test then
if not skipUpdateMessage then