local _, BigBrother = ...

-- Shared Spells
local SpellData = {}

local spells = setmetatable({}, {
	__index = function(t, k)
		local name, _, texture = GetSpellInfo(k)
		if not name then
			BigBrother:Print("Invalid spell ID:", k)
			name, texture = "?", "Interface\\Icons\\INV_Misc_QuestionMark"
		end
		local info = { name = name, texture = texture }
		t[k] = info
		return info
	end
})
SpellData.SpellCache = spells

SpellData.runes = {
	(GetSpellInfo(175456)), -- Hyper Augmentment (Agility)
	(GetSpellInfo(175439)), -- Stout Augmentment (Strength) 
	(GetSpellInfo(175457)), -- Focus Augmentment (Intellect)
}

SpellData.flasks = {
	(GetSpellInfo(156073)), -- Draenic Agility Flask
	(GetSpellInfo(156070)), -- Draenic Intellect Flask
	(GetSpellInfo(156071)), -- Draenic Strength Flask
	(GetSpellInfo(156077)), -- Draenic Stamina Flask
	(GetSpellInfo(156064)), -- Greater Draenic Agility Flask
	(GetSpellInfo(156079)), -- Greater Draenic Intellect Flask
	(GetSpellInfo(156080)), -- Greater Draenic Strength Flask
	(GetSpellInfo(156084)), -- Greater Draenic Stamina Flask
}

SpellData.foods = {
	(GetSpellInfo(19705)),  -- Well Fed
	(GetSpellInfo(433)),    -- Food
}

-- 125 stat food
SpellData.foodsMax = {
	[180745] = true, -- crit
	[180749] = true, -- multistrike
	[180748] = true, -- haste
	[180746] = true, -- versatility
	[180750] = true, -- mastery
	[180747] = true, -- stamina
}

SpellData.raidBuffs = {
	{ --Stats
		1126,   -- Mark of the Wild
		20217,  -- Blessing of Kings
		115921, -- Legacy of the Emperor
		116781, -- Legacy of the White Tiger
		69378,  -- Blessing of Forgotten Kings (Leatherworking)
		159988, -- Bark of the Wild (pet)
		160017, -- Blessing of Kongs (pet)
		90363,  -- Embrace of the Shale Spider (pet)
		160077, -- Strength of the Earth (pet)
	},
	{ --Stamina
		21562,  -- PW:Fortitude
		469,    -- Commanding Shout
		166928, -- Blood Pact
		111922, -- Fortitude (Inscription)
		50256,  -- Invigorating Roar (pet)
		90364,  -- Qiraji Fortitude (pet)
		160003, -- Savage Vigor (pet)
		160014, -- Sturdiness (pet)
	},
	{ --Attack Power
		6673,  -- Battle Shout
		57330, -- Horn of Winter
		19506, -- Trueshot Aura
	},
	{ -- Haste
		55610,  -- Unholy Aura
		49868,  -- Mind Quickening
		113742, -- Swiftblade's Cunning
		116956, -- Grace of Air
		128432, -- Cackling Howl (pet)
		135678, -- Energizing Spores (pet)
		160003, -- Savage Vigor (pet)
		160074, -- Speed of the Swarm (pet)
	},
	{ --Spell Power
		1459,   -- Arcane Brilliance
		61316,  -- Dalaran Brilliance
		109773, -- Dark Intent
		90364,  -- Qiraji Fortitude (pet)
		128433, -- Serpent's Cunning (pet)
		126309, -- Still Water (pet)
	},
	{ --Critical Strike
		1459,   -- Arcane Brilliance
		61316,  -- Dalaran Brilliance
		17007,  -- Leader of the Pack
		116781, -- Legacy of the White Tiger
		97229,  -- Bellowing Roar (pet)
		90363,  -- Embrace of the Shale Spider (pet)
		126373, -- Fearless Roar (pet)
		24604,  -- Furious Howl (pet)
		90309,  -- Terrifying Roar (pet)
		126309, -- Still Water (pet)
		160052, -- Strength of the Pack (pet)
	},
	{ --Mastery
		19740,  -- Blessing of Might
		116956, -- Grace of Air
		24907,  -- Moonkin Aura
		155522, -- Power of the Grave
		160039, -- Keen Senses (pet)
		160073, -- Plainswalking (pet)
		93435,  -- Roar of Courage (pet)
		128997, -- Spirit Beast Blessing (pet)
	},
	{ -- Multistrike
		49868,  -- Mind Quickening
		109773, -- Dark Intent
		113742, -- Swiftblade's Cunning
		166916, -- Windflurry
		24844,  -- Breath of the Winds (pet)
		58604,  -- Double Bite (pet)
		159736, -- Duality (pet)
		54644,  -- Frost Breath (pet)
		50519,  -- Sonic  Focus (pet)
		34889,  -- Spry Attacks (pet)
		57386,  -- Wild Strength (pet)
	},
	{ -- Versatility
		1126,   -- Mark of the Wild
		55610,  -- Unholy Aura
		167187, -- Sanctity Aura
		167188, -- Inspiring Presence
		50518,  -- Chitinous Armor (pet)
		160045, -- Defensive Quills (pet)
		173035, -- Grace (pet)
		35290,  -- Indomitable (pet)
		159735, -- Tenacity (pet)
		160077, -- Strength of the Earth (pet)
		57386,  -- Wild Strength (pet)
	}
}

BigBrother.SpellData = SpellData
