To add a keypress function you could do something like this:
First create a new ability. Name it like: "General_Frame: DnD" (did it like this. because i wanted to use it for all rotations and activate it under the PQI options general tab
)
Code:
if not PQI:IsHotkeys( PQI_RubimGeneralDeathKnight_DnD_key ) then return false end
if PQR_SpellAvailable(DeathandDecay) then
CastSpellByName(GetSpellInfo(43265))
if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end
return true
end
Then you have to edit the "[MISC] Diesell_frame" ability.
Just add
Code:
{ name = "DnD", enable = true, hotkeys = { 'lc' }, },
as a hotkey to the first function. Down where the hotkeys for Pause1 and Pause2 are declared. You can change the hotkey as u like. I personally also deleted the Pause2 because i just need one pause button.
After that. You just have to put the newly created ability "General_Frame: DnD" to all your rotations. Just put it anywhere before the Single and AoE abilities.
I for my self also deleted every autocast of DnD from the single and aoe rotations because i wanted better control for placing it.