correct pet behavior prototype
This commit is contained in:
@@ -1258,18 +1258,6 @@ WeakAuras.event_prototypes = {
|
|||||||
store = true,
|
store = true,
|
||||||
conditionType = "select"
|
conditionType = "select"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name = "role",
|
|
||||||
display = L["Assigned Role"],
|
|
||||||
type = "select",
|
|
||||||
init = "UnitGroupRolesAssigned(unit)",
|
|
||||||
values = "role_types",
|
|
||||||
store = true,
|
|
||||||
conditionType = "select",
|
|
||||||
enable = function(trigger)
|
|
||||||
return not WeakAuras.IsClassic() and (trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party")
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name = "hostility",
|
name = "hostility",
|
||||||
display = L["Hostility"],
|
display = L["Hostility"],
|
||||||
@@ -5627,20 +5615,14 @@ WeakAuras.event_prototypes = {
|
|||||||
ret = [[
|
ret = [[
|
||||||
local inverse = %s
|
local inverse = %s
|
||||||
local check_behavior = %s
|
local check_behavior = %s
|
||||||
local name, i, active, behavior, _
|
local name, i, token, active, behavior, _
|
||||||
for index = 1, NUM_PET_ACTION_SLOTS do
|
for index = 1, NUM_PET_ACTION_SLOTS do
|
||||||
name, i, _, active = GetPetActionInfo(index)
|
name, _, i, token, active = GetPetActionInfo(index)
|
||||||
if active then
|
if active then
|
||||||
activeIcon = _G[i]
|
activeIcon = not token and i or _G[i]
|
||||||
if name == "PET_MODE_AGGRESSIVE" then
|
if name == "PET_MODE_AGGRESSIVE" then
|
||||||
behavior = "aggressive"
|
behavior = "aggressive"
|
||||||
break
|
break
|
||||||
elseif name == "PET_MODE_ASSIST" then
|
|
||||||
behavior = "assist"
|
|
||||||
break
|
|
||||||
elseif name == "PET_MODE_DEFENSIVEASSIST" then
|
|
||||||
behavior = "defensive"
|
|
||||||
break
|
|
||||||
elseif name == "PET_MODE_DEFENSIVE" then
|
elseif name == "PET_MODE_DEFENSIVE" then
|
||||||
behavior = "defensive"
|
behavior = "defensive"
|
||||||
break
|
break
|
||||||
@@ -5672,12 +5654,6 @@ WeakAuras.event_prototypes = {
|
|||||||
test = "true",
|
test = "true",
|
||||||
enable = function(trigger) return trigger.use_behavior end
|
enable = function(trigger) return trigger.use_behavior end
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name = "petspec",
|
|
||||||
display = L["Pet Specialization"],
|
|
||||||
type = "select",
|
|
||||||
values = "pet_spec_types",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
hidden = true,
|
hidden = true,
|
||||||
name = "icon",
|
name = "icon",
|
||||||
|
|||||||
+1
-4
@@ -1555,12 +1555,9 @@ WeakAuras.gtfo_types = {
|
|||||||
WeakAuras.pet_behavior_types = {
|
WeakAuras.pet_behavior_types = {
|
||||||
aggressive = PET_MODE_AGGRESSIVE,
|
aggressive = PET_MODE_AGGRESSIVE,
|
||||||
passive = PET_MODE_PASSIVE,
|
passive = PET_MODE_PASSIVE,
|
||||||
defensive = PET_MODE_DEFENSIVE,
|
defensive = PET_MODE_DEFENSIVE
|
||||||
assist = PET_MODE_ASSIST
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WeakAuras.pet_spec_types = {}
|
|
||||||
|
|
||||||
WeakAuras.cooldown_progress_behavior_types = {
|
WeakAuras.cooldown_progress_behavior_types = {
|
||||||
showOnCooldown = L["On Cooldown"],
|
showOnCooldown = L["On Cooldown"],
|
||||||
showOnReady = L["Not on Cooldown"],
|
showOnReady = L["Not on Cooldown"],
|
||||||
|
|||||||
Reference in New Issue
Block a user