Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Aphid
VuhDo
Commits
ba476fb7
Commit
ba476fb7
authored
5 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Update Classic compatability layer to not modify globals
parent
90ea42c8
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
110 additions
and
65 deletions
+110
-65
VuhDo.lua
VuhDo.lua
+9
-9
VuhDoAoeAdvisor.lua
VuhDoAoeAdvisor.lua
+1
-2
VuhDoBouquetValidators.lua
VuhDoBouquetValidators.lua
+4
-4
VuhDoEventHandler.lua
VuhDoEventHandler.lua
+4
-4
VuhDoHealCommAdapter.lua
VuhDoHealCommAdapter.lua
+3
-4
VuhDoNewOptionsGeneralSkinsShared.lua
VuhDoNewOptionsGeneralSkinsShared.lua
+2
-2
VuhDoOptions/VuhDoNewOptionsToolsKeyLayouts.lua
VuhDoOptions/VuhDoNewOptionsToolsKeyLayouts.lua
+1
-1
VuhDoOptions/VuhDoNewOptionsToolsSkins.lua
VuhDoOptions/VuhDoNewOptionsToolsSkins.lua
+1
-1
VuhDoRoleChecker.lua
VuhDoRoleChecker.lua
+7
-7
VuhDoShieldAbsorb.lua
VuhDoShieldAbsorb.lua
+2
-2
VuhDoToolbox.lua
VuhDoToolbox.lua
+76
-29
No files found.
VuhDo.lua
View file @
ba476fb7
...
...
@@ -91,18 +91,18 @@ local UnitIsAFK = UnitIsAFK;
local
UnitIsConnected
=
UnitIsConnected
;
local
UnitIsCharmed
=
UnitIsCharmed
;
local
UnitInRaid
=
UnitInRaid
;
local
U
nitHasVehicleUI
=
U
nitHasVehicleUI
;
local
VUHDO_u
nitHasVehicleUI
=
VUHDO_u
nitHasVehicleUI
;
local
UnitTargetsVehicleInRaidUI
=
UnitTargetsVehicleInRaidUI
;
local
UnitCanAttack
=
UnitCanAttack
;
local
GetNumGroupMembers
=
GetNumGroupMembers
;
local
UnitName
=
UnitName
;
local
UnitPower
=
UnitPower
;
local
UnitPowerMax
=
UnitPowerMax
;
local
U
nitThreatSituation
=
U
nitThreatSituation
;
local
VUHDO_u
nitThreatSituation
=
VUHDO_u
nitThreatSituation
;
local
UnitClass
=
UnitClass
;
local
UnitPowerType
=
UnitPowerType
;
local
U
nitHasVehicleUI
=
U
nitHasVehicleUI
;
local
U
nitGroupRolesAssigned
=
U
nitGroupRolesAssigned
;
local
VUHDO_u
nitHasVehicleUI
=
VUHDO_u
nitHasVehicleUI
;
local
VUHDO_u
nitGroupRolesAssigned
=
VUHDO_u
nitGroupRolesAssigned
;
local
GetRaidRosterInfo
=
GetRaidRosterInfo
;
local
InCombatLockdown
=
InCombatLockdown
;
local
IsInRaid
=
IsInRaid
;
...
...
@@ -349,9 +349,9 @@ function VUHDO_setHealth(aUnit, aMode)
tInfo
[
"dead"
]
=
tIsDead
;
tInfo
[
"afk"
]
=
tIsAfk
;
tInfo
[
"connected"
]
=
tIsConnected
;
tInfo
[
"threat"
]
=
U
nitThreatSituation
(
aUnit
)
or
0
;
tInfo
[
"threat"
]
=
VUHDO_u
nitThreatSituation
(
aUnit
)
or
0
;
tInfo
[
"threatPerc"
]
=
0
;
tInfo
[
"isVehicle"
]
=
U
nitHasVehicleUI
(
aUnit
);
tInfo
[
"isVehicle"
]
=
VUHDO_u
nitHasVehicleUI
(
aUnit
);
tInfo
[
"className"
]
=
tLocalClass
or
""
;
tInfo
[
"petUnit"
]
=
VUHDO_OWNER_2_PET
[
aUnit
];
tInfo
[
"targetUnit"
]
=
VUHDO_getTargetUnit
(
aUnit
);
...
...
@@ -536,7 +536,7 @@ end
--
local
tRole
;
local
function
VUHDO_addUnitToSpecial
(
aUnit
)
if
VUHDO_CONFIG
[
"OMIT_DFT_MTS"
]
and
"TANK"
==
(
U
nitGroupRolesAssigned
(
aUnit
))
then
if
VUHDO_CONFIG
[
"OMIT_DFT_MTS"
]
and
"TANK"
==
(
VUHDO_u
nitGroupRolesAssigned
(
aUnit
))
then
tinsert
(
VUHDO_GROUPS
[
41
],
aUnit
);
-- VUHDO_ID_MAINTANKS
return
;
end
...
...
@@ -861,7 +861,7 @@ function VUHDO_refreshRaidMembers()
else
tInfo
[
"group"
]
=
VUHDO_getUnitGroup
(
tPlayer
,
false
);
tInfo
[
"isVehicle"
]
=
U
nitHasVehicleUI
(
tPlayer
);
tInfo
[
"isVehicle"
]
=
VUHDO_u
nitHasVehicleUI
(
tPlayer
);
if
(
tInfo
[
"isVehicle"
]
)
then
local
tRaidId
=
UnitInRaid
(
tPlayer
);
...
...
@@ -902,7 +902,7 @@ function VUHDO_refreshRaidMembers()
VUHDO_setHealth
(
bossUnitId
,
1
);
-- VUHDO_UPDATE_ALL
else
tInfo
[
"group"
]
=
VUHDO_getUnitGroup
(
bossUnitId
,
false
);
tInfo
[
"isVehicle"
]
=
U
nitHasVehicleUI
(
bossUnitId
);
tInfo
[
"isVehicle"
]
=
VUHDO_u
nitHasVehicleUI
(
bossUnitId
);
tInfo
[
"afk"
]
=
false
;
tInfo
[
"connected"
]
=
true
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoAoeAdvisor.lua
View file @
ba476fb7
--
local
UnitPower
=
UnitPower
;
local
UnitGetIncomingHeals
=
UnitGetIncomingHeals
;
local
pairs
=
pairs
;
local
ipairs
=
ipairs
;
local
floor
=
floor
;
...
...
@@ -269,7 +268,7 @@ local function VUHDO_aoeGetIncHeals(aUnit, aCastTime)
return
0
;
end
return
(
U
nitGetIncomingHeals
(
aUnit
)
or
0
)
-
(
U
nitGetIncomingHeals
(
aUnit
,
"player"
)
or
0
);
return
(
VUHDO_u
nitGetIncomingHeals
(
aUnit
)
or
0
)
-
(
VUHDO_u
nitGetIncomingHeals
(
aUnit
,
"player"
)
or
0
);
end
...
...
This diff is collapsed.
Click to expand it.
VuhDoBouquetValidators.lua
View file @
ba476fb7
...
...
@@ -205,7 +205,7 @@ end
--
local
function
VUHDO_isPhasedValidator
(
anInfo
,
_
)
if
U
nitIsWarModePhased
(
anInfo
[
"unit"
])
or
not
UnitInPhase
(
anInfo
[
"unit"
])
then
if
VUHDO_u
nitIsWarModePhased
(
anInfo
[
"unit"
])
or
not
UnitInPhase
(
anInfo
[
"unit"
])
then
return
true
,
"Interface\\TargetingFrame\\UI-PhasingIcon"
,
-
1
,
-
1
,
-
1
,
nil
,
nil
,
0
.
15625
,
0
.
84375
,
0
.
15625
,
0
.
84375
;
else
...
...
@@ -217,7 +217,7 @@ end
--
local
function
VUHDO_isWarModePhasedValidator
(
anInfo
,
_
)
if
U
nitIsWarModePhased
(
anInfo
[
"unit"
])
then
if
VUHDO_u
nitIsWarModePhased
(
anInfo
[
"unit"
])
then
return
true
,
"Interface\\TargetingFrame\\UI-PhasingIcon"
,
-
1
,
-
1
,
-
1
,
nil
,
nil
,
0
.
15625
,
0
.
84375
,
0
.
15625
,
0
.
84375
;
else
...
...
@@ -779,7 +779,7 @@ end
local
function
VUHDO_statusExcessAbsorbValidator
(
anInfo
,
_
)
local
healthmax
=
anInfo
[
"healthmax"
];
local
excessAbsorb
=
(
U
nitGetTotalAbsorbs
(
anInfo
[
"unit"
])
or
0
)
+
anInfo
[
"health"
]
-
healthmax
;
local
excessAbsorb
=
(
VUHDO_u
nitGetTotalAbsorbs
(
anInfo
[
"unit"
])
or
0
)
+
anInfo
[
"health"
]
-
healthmax
;
if
excessAbsorb
<
0
then
return
true
,
nil
,
0
,
-
1
,
healthmax
;
...
...
@@ -792,7 +792,7 @@ end
--
local
function
VUHDO_statusTotalAbsorbValidator
(
anInfo
,
_
)
return
true
,
nil
,
U
nitGetTotalAbsorbs
(
anInfo
[
"unit"
])
or
0
,
-
1
,
anInfo
[
"healthmax"
];
return
true
,
nil
,
VUHDO_u
nitGetTotalAbsorbs
(
anInfo
[
"unit"
])
or
0
,
-
1
,
anInfo
[
"healthmax"
];
end
...
...
This diff is collapsed.
Click to expand it.
VuhDoEventHandler.lua
View file @
ba476fb7
...
...
@@ -52,7 +52,7 @@ local UnitIsTrivial = UnitIsTrivial;
local
GetSpellCooldown
=
GetSpellCooldown
;
local
HasFullControl
=
HasFullControl
;
local
pairs
=
pairs
;
local
U
nitThreatSituation
=
U
nitThreatSituation
;
local
VUHDO_u
nitThreatSituation
=
VUHDO_u
nitThreatSituation
;
local
InCombatLockdown
=
InCombatLockdown
;
local
type
=
type
;
...
...
@@ -198,7 +198,7 @@ local tEmpty = {};
local
function
VUHDO_updateThreat
(
aUnit
)
tInfo
=
(
VUHDO_RAID
or
tEmpty
)[
aUnit
];
if
tInfo
then
tInfo
[
"threat"
]
=
U
nitThreatSituation
(
aUnit
)
or
0
;
tInfo
[
"threat"
]
=
VUHDO_u
nitThreatSituation
(
aUnit
)
or
0
;
if
VUHDO_INTERNAL_TOGGLES
[
17
]
then
-- VUHDO_UPDATE_THREAT_LEVEL
VUHDO_updateBouquetsForEvent
(
aUnit
,
17
);
-- VUHDO_UPDATE_THREAT_LEVEL
...
...
@@ -695,7 +695,7 @@ function VUHDO_OnEvent(_, anEvent, anArg1, anArg2, anArg3, anArg4, anArg5, anArg
elseif "PLAYER_SPECIALIZATION_CHANGED" == anEvent then
if VUHDO_VARIABLES_LOADED and not InCombatLockdown() then
if "player" == anArg1 then
local tSpecNum = tostring(
G
etSpecialization()) or "1";
local tSpecNum = tostring(
VUHDO_g
etSpecialization()) or "1";
-- event sometimes fires multiple times so we must de-dupe
if VUHDO_SPEC_LAYOUTS["selected"] ~= VUHDO_SPEC_LAYOUTS[tSpecNum] then
...
...
@@ -1090,7 +1090,7 @@ local function VUHDO_updateAllRange()
end
-- Check if unit is phased
if
U
nitIsWarModePhased
(
tUnit
)
or
not
UnitInPhase
(
tUnit
)
then
if
VUHDO_u
nitIsWarModePhased
(
tUnit
)
or
not
UnitInPhase
(
tUnit
)
then
tIsInRange
=
false
;
else
-- Check if unit is in range
...
...
This diff is collapsed.
Click to expand it.
VuhDoHealCommAdapter.lua
View file @
ba476fb7
----------------------------------------------------
local
UnitGetIncomingHeals
=
UnitGetIncomingHeals
;
local
sIsOthers
,
sIsOwn
,
sIsNoInc
;
function
VUHDO_healCommAdapterInitLocalOverrides
()
sIsOthers
=
VUHDO_CONFIG
[
"SHOW_INCOMING"
];
...
...
@@ -27,12 +26,12 @@ function VUHDO_determineIncHeal(aUnit)
if
sIsOthers
then
if
sIsOwn
then
VUHDO_INC_HEAL
[
aUnit
]
=
U
nitGetIncomingHeals
(
aUnit
);
VUHDO_INC_HEAL
[
aUnit
]
=
VUHDO_u
nitGetIncomingHeals
(
aUnit
);
else
tAllIncoming
=
(
U
nitGetIncomingHeals
(
aUnit
)
or
0
)
-
(
U
nitGetIncomingHeals
(
aUnit
,
"player"
)
or
0
);
tAllIncoming
=
(
VUHDO_u
nitGetIncomingHeals
(
aUnit
)
or
0
)
-
(
VUHDO_u
nitGetIncomingHeals
(
aUnit
,
"player"
)
or
0
);
VUHDO_INC_HEAL
[
aUnit
]
=
tAllIncoming
<
0
and
0
or
tAllIncoming
;
end
else
VUHDO_INC_HEAL
[
aUnit
]
=
U
nitGetIncomingHeals
(
aUnit
,
"player"
);
VUHDO_INC_HEAL
[
aUnit
]
=
VUHDO_u
nitGetIncomingHeals
(
aUnit
,
"player"
);
end
end
This diff is collapsed.
Click to expand it.
VuhDoNewOptionsGeneralSkinsShared.lua
View file @
ba476fb7
...
...
@@ -1999,7 +1999,7 @@ end
--
local
tSpec
;
function
VUHDO_getBestProfileAfterSpecChange
()
tSpec
=
G
etSpecialization
();
tSpec
=
VUHDO_g
etSpecialization
();
return
VUHDO_getBestProfileForSpecAndSize
(
tSpec
,
VUHDO_GROUP_SIZE
)
or
VUHDO_getBestProfileForSpec
(
tSpec
)
or
VUHDO_getBestProfileForSize
(
VUHDO_GROUP_SIZE
);
...
...
@@ -2009,7 +2009,7 @@ end
--
function
VUHDO_getBestProfileAfterSizeChange
()
tSpec
=
G
etSpecialization
();
tSpec
=
VUHDO_g
etSpecialization
();
return
VUHDO_getBestProfileForSpecAndSize
(
tSpec
,
VUHDO_GROUP_SIZE
)
or
VUHDO_getBestProfileForSize
(
VUHDO_GROUP_SIZE
)
or
VUHDO_getBestProfileForSpec
(
tSpec
);
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoNewOptionsToolsKeyLayouts.lua
View file @
ba476fb7
...
...
@@ -83,7 +83,7 @@ function VUHDO_keyLayoutInitSpecCheckButton(aCheckButton, aSpecId)
end
if
tIndexName
then
local
_
,
tSpecName
=
G
etSpecializationInfo
(
tSpecId
);
local
_
,
tSpecName
=
VUHDO_g
etSpecializationInfo
(
tSpecId
);
if
tSpecName
then
_G
[
aCheckButton
:
GetName
()
..
"Label"
]:
SetText
(
tIndexName
..
"
\n
("
..
string.sub
(
tSpecName
,
1
,
4
)
..
")"
);
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoNewOptionsToolsSkins.lua
View file @
ba476fb7
...
...
@@ -121,7 +121,7 @@ function VUHDO_skinsInitAutoCheckButton(aButton, anIndex)
end
if
tIndexName
then
local
_
,
tSpecName
=
G
etSpecializationInfo
(
tSpecId
);
local
_
,
tSpecName
=
VUHDO_g
etSpecializationInfo
(
tSpecId
);
if
tSpecName
then
_G
[
aButton
:
GetName
()
..
"Label"
]:
SetText
(
tIndexName
..
"
\n
("
..
string.sub
(
tSpecName
,
1
,
4
)
..
")"
);
...
...
This diff is collapsed.
Click to expand it.
VuhDoRoleChecker.lua
View file @
ba476fb7
...
...
@@ -14,10 +14,10 @@ local twipe = table.wipe;
local
CheckInteractDistance
=
CheckInteractDistance
;
local
UnitIsUnit
=
UnitIsUnit
;
local
NotifyInspect
=
NotifyInspect
;
local
G
etSpecializationInfo
=
G
etSpecializationInfo
;
local
VUHDO_g
etSpecializationInfo
=
VUHDO_g
etSpecializationInfo
;
local
ClearInspectPlayer
=
ClearInspectPlayer
;
local
UnitStat
=
UnitStat
;
local
U
nitGroupRolesAssigned
=
U
nitGroupRolesAssigned
;
local
VUHDO_u
nitGroupRolesAssigned
=
VUHDO_u
nitGroupRolesAssigned
;
local
UnitLevel
=
UnitLevel
;
local
UnitPowerType
=
UnitPowerType
;
local
VUHDO_isUnitInModel
;
...
...
@@ -138,18 +138,18 @@ function VUHDO_inspectLockRole()
if
not
tInfo
then
VUHDO_NEXT_INSPECT_UNIT
=
nil
;
return
;
end
if
"player"
==
VUHDO_NEXT_INSPECT_UNIT
then
tActiveTree
=
G
etSpecialization
();
tActiveTree
=
VUHDO_g
etSpecialization
();
if
not
tActiveTree
then
VUHDO_INSPECTED_ROLES
[
tInfo
[
"name"
]]
=
VUHDO_ID_UNDEFINED
;
VUHDO_NEXT_INSPECT_UNIT
=
nil
;
return
;
end
tTreeId
,
_
,
_
,
_
,
_
,
tRole
=
G
etSpecializationInfo
(
tActiveTree
,
false
,
false
);
tTreeId
,
_
,
_
,
_
,
_
,
tRole
=
VUHDO_g
etSpecializationInfo
(
tActiveTree
,
false
,
false
);
else
tTreeId
=
G
etInspectSpecialization
(
VUHDO_NEXT_INSPECT_UNIT
);
tRole
=
G
etSpecializationRoleByID
(
tTreeId
);
tTreeId
=
VUHDO_g
etInspectSpecialization
(
VUHDO_NEXT_INSPECT_UNIT
);
tRole
=
VUHDO_g
etSpecializationRoleByID
(
tTreeId
);
end
if
(
tTreeId
or
0
)
==
0
then
...
...
@@ -218,7 +218,7 @@ local tDfRole, tOldRole, tReturnRole, tName;
local
function
VUHDO_determineDfToolRole
(
anInfo
)
tName
=
anInfo
[
"name"
];
tOldRole
=
VUHDO_DF_TOOL_ROLES
[
tName
];
tDfRole
=
U
nitGroupRolesAssigned
(
anInfo
[
"unit"
]);
tDfRole
=
VUHDO_u
nitGroupRolesAssigned
(
anInfo
[
"unit"
]);
if
"NONE"
==
tDfRole
then
VUHDO_DF_TOOL_ROLES
[
tName
]
=
nil
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoShieldAbsorb.lua
View file @
ba476fb7
...
...
@@ -2,7 +2,7 @@ local _;
local
select
=
select
;
local
type
=
type
;
local
U
nitGetTotalAbsorbs
=
U
nitGetTotalAbsorbs
;
local
VUHDO_u
nitGetTotalAbsorbs
=
VUHDO_u
nitGetTotalAbsorbs
;
local
VUHDO_SHIELDS
=
{
[
17
]
=
15
,
-- VUHDO_SPELL_ID.POWERWORD_SHIELD -- ok
...
...
@@ -265,7 +265,7 @@ end
--
local
tSummeLeft
;
function
VUHDO_getUnitOverallShieldRemain
(
aUnit
)
return
U
nitGetTotalAbsorbs
(
aUnit
)
or
0
;
return
VUHDO_u
nitGetTotalAbsorbs
(
aUnit
)
or
0
;
end
...
...
This diff is collapsed.
Click to expand it.
VuhDoToolbox.lua
View file @
ba476fb7
...
...
@@ -21,7 +21,7 @@ local GetTime = GetTime;
local
GetRealZoneText
=
GetRealZoneText
;
local
GetSpellInfo
=
GetSpellInfo
;
local
SetMapToCurrentZone
=
SetMapToCurrentZone
;
local
U
nitAlternatePowerInfo
=
U
nitAlternatePowerInfo
;
local
VUHDO_u
nitAlternatePowerInfo
=
VUHDO_u
nitAlternatePowerInfo
;
local
WorldMapFrame
=
WorldMapFrame
;
local
GetMouseFocus
=
GetMouseFocus
;
local
GetPlayerFacing
=
GetPlayerFacing
;
...
...
@@ -285,7 +285,7 @@ function VUHDO_isInRange(aUnit)
return
true
;
elseif
VUHDO_isSpecialUnit
(
aUnit
)
then
return
VUHDO_isTargetInRange
(
aUnit
);
elseif
U
nitIsWarModePhased
(
aUnit
)
or
not
UnitInPhase
(
aUnit
)
then
elseif
VUHDO_u
nitIsWarModePhased
(
aUnit
)
or
not
UnitInPhase
(
aUnit
)
then
return
false
;
elseif
(
sIsGuessRange
)
then
return
UnitInRange
(
aUnit
);
...
...
@@ -540,7 +540,7 @@ end
local
tResurrectionSpells
;
local
tKnownResurrectionSpells
;
function
VUHDO_getResurrectionSpells
()
tResurrectionSpells
=
(
VUHDO_RESURRECTION_SPELLS
[
VUHDO_PLAYER_CLASS
]
or
sEmpty
)[
G
etSpecialization
()
or
0
];
tResurrectionSpells
=
(
VUHDO_RESURRECTION_SPELLS
[
VUHDO_PLAYER_CLASS
]
or
sEmpty
)[
VUHDO_g
etSpecialization
()
or
0
];
if
tResurrectionSpells
then
tKnownResurrectionSpells
=
{
};
...
...
@@ -752,7 +752,7 @@ end
--
function
VUHDO_isAltPowerActive
(
aUnit
)
local
tBarType
,
_
,
_
,
_
,
_
,
tIsHideFromOthers
=
U
nitAlternatePowerInfo
(
aUnit
);
local
tBarType
,
_
,
_
,
_
,
_
,
tIsHideFromOthers
=
VUHDO_u
nitAlternatePowerInfo
(
aUnit
);
return
tBarType
and
(
not
tIsHideFromOthers
or
"player"
==
aUnit
);
end
...
...
@@ -998,98 +998,145 @@ end
---------------------------------
-- CLASSIC COMPATIBILITY LAYER --
---------------------------------
function
G
etSpecialization()
function
VUHDO_g
etSpecialization()
return 1;
if not GetSpecialization then
return 1;
else
return GetSpecialization();
end
end
function
G
etSpecializationInfo()
function
VUHDO_g
etSpecializationInfo(
...
)
return 1, "Unknown", _, _, _, "NONE";
if not GetSpecializationInfo then
return 1, "Unknown", _, _, _, "NONE";
else
return GetSpecializationInfo(...);
end
end
function
G
etInspectSpecialization()
function
VUHDO_g
etInspectSpecialization(
...
)
return 0;
if not GetInspectSpecialization then
return 0;
else
return GetInspectSpecialization(...);
end
end
function
G
etSpecializationRoleByID()
function
VUHDO_g
etSpecializationRoleByID(
...
)
return "NONE";
if not GetSpecializationRoleByID then
return "NONE";
else
return GetSpecializationRoleByID(...);
end
end
function
U
nitGetIncomingHeals()
function
VUHDO_u
nitGetIncomingHeals(
...
)
return 0;
if not UnitGetIncomingHeals then
return 0;
else
return UnitGetIncomingHeals(...);
end
end
function
U
nitGetTotalAbsorbs()
function
VUHDO_u
nitGetTotalAbsorbs(
...
)
return 0;
if not UnitGetTotalAbsorbs then
return 0;
else
return UnitGetTotalAbsorbs(...);
end
end
function
U
nitThreatSituation()
function
VUHDO_u
nitThreatSituation(
...
)
return 0;
if not UnitThreatSituation then
return 0;
else
return UnitThreatSituation(...);
end
end
function
U
nitIsWarModePhased()
function
VUHDO_u
nitIsWarModePhased(
...
)
return false;
if not UnitIsWarModePhased then
return false;
else
return UnitIsWarModePhased(...);
end
end
function
U
nitHasVehicleUI()
function
VUHDO_u
nitHasVehicleUI(
...
)
return false;
if not UnitHasVehicleUI then
return false;
else
return UnitHasVehicleUI(...);
end
end
function
U
nitGroupRolesAssigned()
function
VUHDO_u
nitGroupRolesAssigned(
...
)
return "NONE";
if not UnitGroupRolesAssigned then
return "NONE";
else
return UnitGroupRolesAssigned(...);
end
end
function
U
nitAlternatePowerInfo()
function
VUHDO_u
nitAlternatePowerInfo(
...
)
return false;
if not UnitAlternatePowerInfo then
return false;
else
return UnitAlternatePowerInfo(...);
end
end
C_IncomingSummon = { };
function C_IncomingSummon.HasIncomingSummon()
function VUHDO_hasIncomingSummon(...)
return false;
if not C_IncomingSummon or not C_IncomingSummon.HasIncomingSummon then
return false;
else
return C_IncomingSummon.HasIncomingSummon(...);
end
end
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment