local E, L, V, P, G = unpack(select(2, ...)); --Engine

----------------------------------------------------------------------------------------
--	The best way to add or delete spell is to go at www.wowhead.com, search for a spell.
--	Example: Sap -> http://www.wowhead.com/spell=6770
--	Take the number ID at the end of the URL, and add it to the list
----------------------------------------------------------------------------------------
local GetSpellInfo = GetSpellInfo

G.DiminishingSpells = {
	-- Stuns
	[210141] = {"stun"},			-- Zombie Explosion
	[108194] = {"stun"},			-- Asphyxiate (Unholy)
	[221562] = {"stun"},			-- Asphyxiate (Blood)
	[91800] = {"stun"},				-- Gnaw (Ghoul)
	[91797] = {"stun"},				-- Monstrous Blow (Mutated Ghoul)
	[287254] = {"stun"},			-- Dead of Winter
	[179057] = {"stun"},			-- Chaos Nova
	[205630] = {"stun"},			-- Illidan's Grasp (Primary effect)
	[208618] = {"stun"},			-- Illidan's Grasp (Secondary effect)
	[211881] = {"stun"},			-- Fel Eruption
	[22570] = {"stun"},				-- Maim
	[163505] = {"stun"},			-- Rake (Prowl)
	[5211] = {"stun"},				-- Mighty Bash
	[202244] = {"stun"},			-- Overrun (Also a knockback)
	[24394] = {"stun"},				-- Intimidation
	[119381] = {"stun"},			-- Leg Sweep
	[202346] = {"stun"},			-- Double Barrel
	[853] = {"stun"},				-- Hammer of Justice
	[64044] = {"stun"},				-- Psychic Horror
	[200200] = {"stun"},			-- Holy Word: Chastise Censure
	[1833] = {"stun"},				-- Cheap Shot
	[408] = {"stun"},				-- Kidney Shot
	[199804] = {"stun"},			-- Between the Eyes
	[118905] = {"stun"},			-- Static Charge (Capacitor Totem)
	[118345] = {"stun"},			-- Pulverize (Primal Earth Elemental)
	[204437] = {"stun"},			-- Lightning Lasso
	[30283] = {"stun"},				-- Shadowfury
	[89766] = {"stun"},				-- Axe Toss (Felguard)
	[171017] = {"stun"},			-- Meteor Strike (Infernal)
	[171018] = {"stun"},			-- Meteor Strike (Abyssal)
	[46968] = {"stun"},				-- Shockwave
	[132168] = {"stun"},			-- Shockwave (Protection)
	[132169] = {"stun"},			-- Storm Bolt
	[199085] = {"stun"},			-- Warpath
	[20549] = {"stun"},				-- War Stomp (Tauren)
	[255723] = {"stun"},			-- Bull Rush (Highmountain Tauren)
	--PTR [287712] = {"stun"},			-- Haymaker (Kul Tiran)

	-- Roots
	[204085] = {"root"},			-- Deathchill (Chains of Ice)
	[233395] = {"root"},			-- Deathchill (Remorseless Winter)
	[339] = {"root"},				-- Entangling Roots
	[170855] = {"root"},			-- Entangling Roots (Nature's Grasp)
	[102359] = {"root"},			-- Mass Entanglement
	[117526] = {"root"},			-- Binding Shot
	[162480] = {"root"},			-- Steel Trap
	[212638] = {"root"},			-- Tracker's Net
	[201158] = {"root"},			-- Super Sticky Tar
	[122] = {"root"},				-- Frost Nova
	[33395] = {"root"},				-- Freeze
	[198121] = {"root"},			-- Frostbite
	[233582] = {"root"},			-- Entrenched in Flame
	[116706] = {"root"},			-- Disable
	[64695] = {"root"},				-- Earthgrab (Totem effect)

	-- Incapacitates
	[217832] = {"incapacitate"},	-- Imprison
	[221527] = {"incapacitate"},	-- Imprison (Honor talent)
	[99] = {"incapacitate"},		-- Incapacitating Roar
	[3355] = {"incapacitate"},		-- Freezing Trap
	[203337] = {"incapacitate"},	-- Freezing Trap (Honor talent)
	[209790] = {"incapacitate"},	-- Freezing Arrow
	[213691] = {"incapacitate"},	-- Scatter Shot
	[118] = {"incapacitate"},		-- Polymorph
	[28271] = {"incapacitate"},		-- Polymorph (Turtle)
	[28272] = {"incapacitate"},		-- Polymorph (Pig)
	[61025] = {"incapacitate"},		-- Polymorph (Snake)
	[61305] = {"incapacitate"},		-- Polymorph (Black Cat)
	[61721] = {"incapacitate"},		-- Polymorph (Rabbit)
	[61780] = {"incapacitate"},		-- Polymorph (Turkey)
	[126819] = {"incapacitate"},	-- Polymorph (Porcupine)
	[161353] = {"incapacitate"},	-- Polymorph (Polar Bear Cub)
	[161354] = {"incapacitate"},	-- Polymorph (Monkey)
	[161355] = {"incapacitate"},	-- Polymorph (Penguin)
	[161372] = {"incapacitate"},	-- Polymorph (Peacock)
	[277787] = {"incapacitate"},	-- Polymorph (Baby Direhorn)
	[277792] = {"incapacitate"},	-- Polymorph (Bumblebee)
	[82691] = {"incapacitate"},		-- Ring of Frost
	[115078] = {"incapacitate"},	-- Paralysis
	[20066] = {"incapacitate"},		-- Repentance
	[9484] = {"incapacitate"},		-- Shackle Undead
	[200196] = {"incapacitate"},	-- Holy Word: Chastise
	[1776] = {"incapacitate"},		-- Gouge
	[6770] = {"incapacitate"},		-- Sap
	[199743] = {"incapacitate"},	-- Parley
	[51514] = {"incapacitate"},		-- Hex
	[196942] = {"incapacitate"},	-- Hex (Voodoo Totem)
	[210873] = {"incapacitate"},	-- Hex (Raptor)
	[211004] = {"incapacitate"},	-- Hex (Spider)
	[211010] = {"incapacitate"},	-- Hex (Snake)
	[211015] = {"incapacitate"},	-- Hex (Cockroach)
	[269352] = {"incapacitate"},	-- Hex (Skeletal Hatchling)
	[277778] = {"incapacitate"},	-- Hex (Zandalari Tendonripper)
	[277784] = {"incapacitate"},	-- Hex (Wicker Mongrel)
	[197214] = {"incapacitate"},	-- Sundering
	[6789] = {"incapacitate"},		-- Mortal Coil
	[107079] = {"incapacitate"},	-- Quaking Palm (Pandaren)

	-- Disorients
	[207167] = {"disorient"},		-- Blinding Sleet
	[207685] = {"disorient"},		-- Sigil of Misery
	[2637] = {"disorient"},			-- Hibernate
	[33786] = {"disorient"},		-- Cyclone
	[209753] = {"disorient"},		-- Cyclone (Honor talent)
	[31661] = {"disorient"},		-- Dragon's Breath
	[198909] = {"disorient"},		-- Song of Chi-ji
	[202274] = {"disorient"},		-- Incendiary Brew
	[105421] = {"disorient"},		-- Blinding Light
	[605] = {"disorient"},			-- Mind Control
	[8122] = {"disorient"},			-- Psychic Scream
	[226943] = {"disorient"},		-- Mind Bomb
	[2094] = {"disorient"},			-- Blind
	[118699] = {"disorient"},		-- Fear
	[6358] = {"disorient"},			-- Seduction (Succubus)
	[261589] = {"disorient"},		-- Seduction (Grimoire of Sacrifice)
	[5246] = {"disorient"},			-- Intimidating Shout

	-- Silences
	[47476] = {"silence"},			-- Strangulate
	[204490] = {"silence"},			-- Sigil of Silence
	[202933] = {"silence"},			-- Spider Sting
	[233022] = {"silence"},			-- Spider Sting 2 (TODO: incorrect?)
	[217824] = {"silence"},			-- Shield of Virtue
	[199683] = {"silence"},			-- Last Word
	[15487] = {"silence"},			-- Silence
	[1330] = {"silence"},			-- Garrote
	[43523] = {"silence"},			-- Unstable Affliction Silence Effect (TODO: incorrect?)
	[196364] = {"silence"},			-- Unstable Affliction Silence Effect 2
}

local function GetIcon(id)
	local _, _, icon = GetSpellInfo(id)
	return icon
end

G.DiminishingIcons = {
	["stun"] = GetIcon(408),
	["root"] = GetIcon(122),
	["incapacitate"] = GetIcon(118),
	["disorient"] = GetIcon(8122),
	["silence"] = GetIcon(15487),
}