correct setWeatherAlwaysClear
This commit is contained in:
@@ -374,7 +374,13 @@ local function UnitXP_SP3_setShowInCombatNameplatesNearPlayer(enable)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function UnitXP_SP3_setWeatherAlwaysClear(enable)
|
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 test then
|
||||||
if not skipUpdateMessage then
|
if not skipUpdateMessage then
|
||||||
|
|||||||
Reference in New Issue
Block a user