local SPELL_MIND_FREEZE = "Mind Freeze"
local SPELL_BONE_SHIELD = "Bone Shield"
local SPELL_DANCING_RUNE_WEAPON = "Dancing Rune Weapon"
local SPELL_RUNE_TAP = "Rune Tap"
local SPELL_CONVERSION = "Conversion"
local SPELL_DEATH_STRIKE = "Death Strike"
local SPELL_PLAGUE_LEECH = "Plague Leech"
local SPELL_BLOOD_TAP = "Blood Tap"
local SPELL_BLOOD_SHIELD = "Blood Shield"
local SPELL_EMPOWER_RUNE_WEAPON = "Empower Rune Weapon"
local SPELL_RUNE_STRIKE = "Rune Strike"
local SPELL_OUTBREAK = "Outbreak"
local SPELL_ICY_TOUCH = "Icy Touch"
local SPELL_PLAGUE_STRIKE = "Plague Strike"
local SPELL_BLOOD_BOIL = "Blood Boil"
local SPELL_BLOOD_PLAGUE = "Blood Plague"
local SPELL_FROST_FEVER = "Frost Fever"
local SPELL_HORN_OF_WINTER = "Horn of Winter"
local SPELL_HEART_STRIKE = "Heart Strike"
local SPELL_CRIMSON_SCOURGE = 'Crimson Scourge'

WhatsNext.defaultCastSequences["DEATHKNIGHT"][1] = {
	{	spell=SPELL_MIND_FREEZE,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='Target Is Interruptable',['invert']=false,},
		}
	},
	{	spell=SPELL_DEATH_STRIKE,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Player Need Buff From Player',['time']='3',['count']='1',['invert']=false,['buffName']=SPELL_BLOOD_SHIELD,},
		}
	},
	{	spell=SPELL_BONE_SHIELD,
		checks={
			{['type']='Player Buffed',['count']='1',['buffName']=SPELL_BONE_SHIELD,['invert']='true',},
		}
	},
	{	spell=SPELL_DANCING_RUNE_WEAPON,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
		}
	},
	{	spell=SPELL_RUNE_TAP,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='Maximum Health Percent',['invert']=false,['amount']='0.4',},
		}
	},
	{	spell=SPELL_CONVERSION,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='Player Buffed',['buffName']=SPELL_CONVERSION,['invert']=false,['count']='1',},
			{['type']='Maximum Health Percent',['invert']='true',['amount']='0.6',},
		}
	},
	{	spell=SPELL_CONVERSION,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='Minimum Power',['invert']=false,['amount']='60',},
			{['type']='Maximum Health Percent',['invert']=false,['amount']='0.3',},
			{['type']='Player Buffed',['count']='1',['buffName']=SPELL_CONVERSION,['invert']='true',},
		}
	},
	{	spell=SPELL_PLAGUE_LEECH,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='Rune Type Ready Count',['unholyAmount']='1',['bloodAmount']='0',['invert']='true',['frostAmount']='1',},
			{['type']='Ability Cooldown',['invert']='true',['time']='2',['spellName']=SPELL_OUTBREAK,},
			{['type']='Target Has Debuff From Player',['debuffName']=SPELL_FROST_FEVER,['count']='1',['invert']=false,},
			{['type']='Target Has Debuff From Player',['debuffName']=SPELL_BLOOD_PLAGUE,['count']='1',['invert']=false,},
		}
	},
	{	spell=SPELL_BLOOD_TAP,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='Rune Type Ready Count',['unholyAmount']='1',['bloodAmount']='0',['invert']='true',['frostAmount']='1',},
			{['type']='Player Buffed',['buffName']='Blood Charge',['invert']=false,['count']='5',},
		}
	},
	{	spell=SPELL_EMPOWER_RUNE_WEAPON,
		checks={
			{['type']='Rune Ready Count',['invert']='true',['amount']='1',},
			{['type']='In Combat',['invert']=false,},
		}
	},
	{	spell=SPELL_RUNE_STRIKE,
		checks={
			{['type']='Minimum Power',['invert']=false,['amount']='90',},
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
		}
	},
	{	spell=SPELL_OUTBREAK,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Target Need Debuff From Player',['debuffName']=SPELL_FROST_FEVER,['count']='1',['invert']=false,['time']='2',},
			{['type']='Target Need Debuff From Player',['debuffName']=SPELL_BLOOD_PLAGUE,['count']='1',['invert']=false,['time']='2',},
		}
	},
	{	spell=SPELL_ICY_TOUCH,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Target Has Debuff From Player',['debuffName']=SPELL_FROST_FEVER,['count']='1',['invert']='true',},
			{['type']='Ability Cooldown',['invert']=false,['time']='3',['spellName']=SPELL_OUTBREAK,},
		}
	},
	{	spell=SPELL_PLAGUE_STRIKE,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Ability Cooldown',['invert']=false,['time']='3',['spellName']=SPELL_OUTBREAK,},
			{['type']='Target Has Debuff From Player',['debuffName']=SPELL_BLOOD_PLAGUE,['count']='1',['invert']='true',},
		}
	},
	{	spell=SPELL_BLOOD_BOIL,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Player Buffed',['invert']=false,['count']='1',['buffName']=SPELL_CRIMSON_SCOURGE,},
		}
	},
	{	spell=SPELL_BLOOD_BOIL,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Minimum Enemy Count',['invert']=false,['amount']='2',},
			{['type']='Blood Rune Simple Ready Count',['invert']=false,['amount']='1',},
		}
	},
	{	spell=SPELL_BLOOD_BOIL,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Minimum Enemy Count',['invert']=false,['amount']='2',},
			{['type']='Rune Type Ready Count',['unholyAmount']='1',['bloodAmount']='1',['invert']=false,['frostAmount']='1',},
		}
	},
	{	spell=SPELL_HEART_STRIKE,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Blood Rune Simple Ready Count',['invert']=false,['amount']='1',},
		}
	},
	{	spell=SPELL_HEART_STRIKE,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='In Range',['invert']=false,['spellName']=SPELL_DEATH_STRIKE,},
			{['type']='Rune Type Ready Count',['unholyAmount']='1',['bloodAmount']='1',['invert']=false,['frostAmount']='1',},
		}
	},
	{	spell=SPELL_HORN_OF_WINTER,
		checks={
			{['type']='Player Buffed',['buffName']=SPELL_HORN_OF_WINTER,['invert']='true',['count']='1',},
		}
	},
	{	spell=SPELL_HORN_OF_WINTER,
		checks={
			{['type']='In Combat',['invert']=false,},
			{['type']='Maximum Power',['invert']=false,['amount']='90',},
		}
	},
}
	