is it possible to use an "OR" statement?
I would like to use a spell if
-> potion is ticking OR (potion is on CD + (Legendary ring Proc OR trinket proc))
or should I split this up into several spellcasts with the according conditions?
also how do I check for item cooldowns and how does the "ttd" condition work?
is this code correct (assuming there is no OR statement, since I haven't seen one being used in any CR I've looked at)
Code:
{ "Stampede", {
"player.spell(Stampede).exists",
"player.buff(Draenic Agility Potion)",
"modifier.cooldowns",
},
}, -- Stampede if Potion is up
{ "Stampede", {
"player.spell(Stampede).exists",
"#109217.cooldown > 0"
"player.buff(Archmage's Greater Incandescence)"
"modifier.cooldowns",
}
}, -- Stampede if Potion is on CD, but Legendary Ring Proc
{ "Stampede", {
"player.spell(Stampede).exists",
"#109217.cooldown > 0"
"player.buff(Lub-Dub)"
"modifier.cooldowns",
}
}, -- Stampede if Potion is on CD, but On-Use Trinket is up
{ "Stampede", {
"player.spell(Stampede).exists",
"ttd <=25",
"modifier.cooldowns",
}
}, -- Stampede if Target dies in 25 sec