My problem is....
Lets say, I have 4 different ranks of spell and I use 2 of them, the last rank and somewhat around rank 2.
So I bind last rank on E, and rank 2 on ctrl + e.
And I have a macro to cast a spell on my target's target without losing my target, and I have it binded with alt, so lets say if I just want to cast a spell I press E, but when I want my spell to be casted on target's target I just add alt before I press e, so it casts on assist, it looks like:
/Script if UnitIsFriend("player", "target") then TargetUnit("targettarget") CastSpellByName("shadow word: pain") TargetLastTarget() else CastSpellByName("shadow word: pain") end
/script TargetLastEnemy()
Works perfect except one thing, I cant bind rank 2 to be casted on my target's target, since.... The bind will look like alt+ctrl+e, its simply not possible to do in keybindings menu.
What can you suggest? Is there any command like "IfAltIsPressed" or something, so I can have smth like if alt is pressed, then blabla script above, else /cast spell?