Code:
Action priority list
-- [1] -- "Blood presence", Spell ID: 48263, Conditions: Player is DK and not in Blood Presence
-- [2] -- "Horn of Winter for raid wide buff", Spell ID: 57330, Conditions: Player needs one of following buffs: 57330, 19506, 6673 (ie warriors Battle Shout, hunter's true shot aura, or death knights horn of winter)
-- [3] -- "Vampiric blood", Spell ID: 55233, Conditions: Player HP is less than 70%
-- [4] -- "Lichborne for healing w/ death coil", Spell ID: 49039, Conditions: Player HP is less than 50%
-- [5] -- "Death coil for healing w/ lichborne buff", Spell ID: 47541, Conditions: Player has buff Lichborne (id: 49039), Player hp is less than 100%, Player runic power is more than or equal to 40
-- [6] -- "Bone shield", Spell ID: 49222, Conditions: Player HP is less than 80%, Player needs buff Bone Shield (id: 49222)
-- [7] -- "Raise Dead to call a pet", Spell ID: 46584, Conditions: Player HP is less than 35%
-- [8] -- "Death Pact - sacrifice pet for healing", Spell ID: 48743, Conditions: Player HP is less than 35%, AND [not sure about what sort of checks can be made in PQR, so something like: Has pet, or raise dead has just been used, or pet hp is more than 1 (ie player has pet), or cooldown for raise dead is more than 110 seconds (ie its just been used) - the point is, DK won't have pet unless DK uses raise dead, and only use raise dead when player has less than 35% health so that death pact can be used straight away]
-- [9] -- "Death Strike (<60% HP)", Spell ID: 49998, Conditions: Player HP is less than 60%, Have >=1 unholy rune, have >=1 frost rune
-- [10] -- "Death Strike (Death Runes <60% HP)", Spell ID: 49998, Conditions: Player HP is less than 60%, Have >=2 death runes
-- [11] -- "Empower rune weapon on bosses to get back runes", Spell ID: 47568, Conditions: Target is boss, player hp is less than 50%, frost runes = 0, unholy runes = 0
-- [12] -- "Blood tap (Blood)", Spell ID: 45529, Conditions: Have 10 blood charges (ie Have buff 'Blood Charge' spell id: 114851 with 10 stacks), blood runes = 0
-- [13] -- "Blood tap (Frost)", Spell ID: 45529, Conditions: Have 10 blood charges (ie Have buff 'Blood Charge' spell id: 114851 with 10 stacks), frost runes = 0
-- [14] -- "Blood tap (Unholy)", Spell ID: 45529, Conditions: Have 10 blood charges (ie Have buff 'Blood Charge' spell id: 114851 with 10 stacks), unholy runes = 0
-- [15] -- "Blood tap (Blood + Life)", Spell ID: 45529, Conditions: Have 5 blood charges (ie Have buff 'Blood Charge' spell id: 114851 with 5 stacks), blood runes = 0, player hp is less than 80%
-- [16] -- "Blood tap (Frost + Life)", Spell ID: 45529, Conditions: Have 5 blood charges (ie Have buff 'Blood Charge' spell id: 114851 with 5 stacks), frost runes = 0, player hp is less than 80%
-- [17] -- "Blood tap (Unholy + Life)", Spell ID: 45529, Conditions: Have 5 blood charges (ie Have buff 'Blood Charge' spell id: 114851 with 5 stacks), unholy runes = 0, player hp is less than 80%
-- [18] -- "Outbreak to get debuffs on target", Spell ID: 77575, Conditions: Target needs debuffs Blood Plague and Frost Fever (ie target needs debuffs with id 55095 and 55078)
-- [19] -- "Blood boil to refresh debuffs on target", Spell ID: 48721, Conditions: Target needs debuffs Blood plague and Frost Fever to be refreshed (ie debuffs 55095 and 55078 are both applied, but have less than 4 seconds remaining)
-- [20] -- "Icy touch to cast ff debuff", Spell ID: 45477, Conditions: Target needs debuff Frost Fever (id: 55095), player has >=1 frost rune, player has >=1 unholy rune
-- [21] -- "Plague strike to cast bp debuff", Spell ID: 45462, Conditions: Target needs debuff Blood Plague (id: 55078), player has >=1 unholy rune
-- [22] -- "Plague leech (Frost + Unholy)", Spell ID: 123693, Conditions: Outbreak (spell id 77575) has less than 1.5 second cooldown, player has 0 frost runes, player has 0 unholy runes, player has less than 4 death runes, target has both Blood Plague and Frost Fever [ie id's 55095 and 55078] and they are about to expire (ie have less than 4 seconds before expiry)
-- [23] -- "Plague leech (Blood)", Spell ID: 123693, Conditions: Outbreak has less than 1.5 second cooldown, player has 0 blood runes, target has both Blood Plague and Frost Fever [ie id's 55095 and 55078] and they are about to expire (ie have less than 4 seconds before expiry)
-- [24] -- "Death strike", Spell ID: 49998, Conditions: Player has less than 90% hp, Player has 2 frost runes, player has 2 unholy runes
-- [25] -- "Death strike (Death)", Spell ID: 49998, Conditions: Player has less than 90% hp, Player has >=2 death runes
-- [26] -- "Rune tap", Spell ID: 48982, Conditions: Player has less than 50% hp, Player has >=1 blood rune
-- [27] -- "Soul reaper (Blood)", Spell ID: 114866, Conditions: Target has less than 35% hp, player has >=1 blood rune
-- [28] -- "Heart strike (Blood)", Spell ID: 55050, Conditions: Player has >=1 Blood rune
-- [29] -- "Rune strike", Spell ID: 56815, Conditions: Player has more than 60 runic power
-- [30] -- "Horn of winter (Power)", Spell ID: 57330, Conditions: Player has less than 80 runic power
-- [31] -- "Blood boil (Scourge Proc)", Spell ID: 48721, Conditions: Player has buff/proc "Crimson Scourge" (id: 81141)
Thats for single target. If someone is willing to implement that into PQR, i'm happy to attempt to make a priority list for AoE as well.