Adding warrior stances as TriggerCondition for Classic
Hantunaar opened this issue ยท 0 comments
Hey there! So I felt warrior stances were missing from Parrot TBCC and I added them:
Data\TriggerConditions.lua line 845, added:
Parrot:RegisterSecondaryTriggerCondition {
name = "Warrior Stance",
localName = L["Warrior Stance"],
notLocalName = L["Not in Warrior Stance"],
param = {
type = 'select',
values = {
["Battle Stance"] = GetSpellInfo(2457),
["Defensive Stance"] = GetSpellInfo(71),
["Berserker Stance"] = GetSpellInfo(2458),
}
},
check = function(param)
if select(2,UnitClass("player")) ~= "WARRIOR" then
return true
end
local form = GetShapeshiftForm(true)
if form == 1 then
return param == "Battle Stance"
elseif form == 2 then
return param == "Defensive Stance"
elseif form == 3 then
return param == "Berserker Stance"
end
return false
end,
}
Locales\enUS.lua lines 282 and 572
282: L["Not in Warrior Stance"] = true
572: L["Warrior Stance"] = true