from retail

This commit is contained in:
NoM0Re
2025-02-11 20:18:57 +01:00
parent eee4c23026
commit f94aff6a9d
6 changed files with 95 additions and 28 deletions
+67 -20
View File
@@ -3854,6 +3854,16 @@ Private.event_prototypes = {
type = "item",
test = "true"
},
{
name = "itemId",
display = WeakAuras.newFeatureString .. L["ItemId"],
hidden = true,
init = "itemId",
test = "true",
store = true,
conditionType = "number",
operator_types = "only_equal",
},
{
name = "remaining",
display = L["Remaining Time"],
@@ -3910,26 +3920,6 @@ Private.event_prototypes = {
return state and state.show and (not state.gcdCooldown and state.expirationTime and state.expirationTime > GetTime() or state.enabled == 0) == (needle == 1)
end,
},
{
name = "itemInRange",
display = L["Item in Range"],
hidden = true,
test = "true",
conditionType = "bool",
conditionTest = function(state, needle)
if not state or not state.show or not UnitExists('target') then
return false
end
if InCombatLockdown() and not UnitCanAttack('player', 'target') then
return false
end
return IsItemInRange(state.itemname, 'target') == (needle == 1)
end,
conditionEvents = {
"PLAYER_TARGET_CHANGED",
"WA_SPELL_RANGECHECK",
}
},
{
hidden = true,
name = "gcdCooldown",
@@ -4064,6 +4054,16 @@ Private.event_prototypes = {
end,
statesParameter = "one",
args = {
{
name = "itemId",
display = WeakAuras.newFeatureString .. L["ItemId"],
hidden = true,
init = "item",
test = "true",
store = true,
conditionType = "number",
operator_types = "only_equal",
},
{
name = "itemSlot",
required = true,
@@ -4188,6 +4188,7 @@ Private.event_prototypes = {
}
},
automaticrequired = true,
hasItemID = true,
progressType = "timed"
},
["Cooldown Ready (Item)"] = {
@@ -4223,6 +4224,18 @@ Private.event_prototypes = {
type = "item",
init = "arg"
},
--[[
{
name = "itemId",
display = WeakAuras.newFeatureString .. L["ItemId"],
hidden = true,
init = "itemId",
test = "true",
store = true,
conditionType = "number",
operator_types = "only_equal",
},
]]
{
name = "name",
display = L["Name"],
@@ -4284,6 +4297,16 @@ Private.event_prototypes = {
values = "item_slot_types",
init = "arg"
},
{
name = "itemId",
display = WeakAuras.newFeatureString .. L["ItemId"],
hidden = true,
init = "item",
test = "true",
store = true,
conditionType = "number",
operator_types = "only_equal",
},
{
name = "name",
display = L["Name"],
@@ -5041,6 +5064,18 @@ Private.event_prototypes = {
test = "true",
conditionType = "string"
},
--[[
{
name = "itemId",
display = WeakAuras.newFeatureString .. L["ItemId"],
hidden = true,
init = "itemId",
test = "true",
store = true,
conditionType = "number",
operator_types = "only_equal",
},
]]
{
name = "includeBank",
display = L["Include Bank"],
@@ -5886,6 +5921,18 @@ Private.event_prototypes = {
test = "true",
showExactOption = true
},
--[[
{
name = "itemId",
display = WeakAuras.newFeatureString .. L["ItemId"],
hidden = true,
init = "itemId",
test = "true",
store = true,
conditionType = "number",
operator_types = "only_equal",
},
]]
{
name = "itemSlot",
display = WeakAuras.newFeatureString .. L["Item Slot"],