new conditional channeltime and bump version

This commit is contained in:
Jrc13245
2025-11-27 18:18:54 -05:00
parent 8764fc1dd3
commit 5b5d8860c5
3 changed files with 26 additions and 1 deletions
+16
View File
@@ -1977,6 +1977,22 @@ CleveRoids.Keywords = {
return CleveRoids.CurrentSpell.type ~= "channeled"
end,
channeltime = function(conditionals)
local playerCast = CleveRoids.spell_tracking[CleveRoids.playerGuid]
if not playerCast or playerCast.type ~= "CHANNEL" then
return false
end
local timeLeft = playerCast.expires - GetTime()
local check = conditionals.channeltime
if type(check) == "table" and check.operator and check.amount then
return CleveRoids.comparators[check.operator](timeLeft, check.amount)
end
return false
end,
targeting = function(conditionals)
return Or(conditionals.targeting, function (unit)
return (UnitIsUnit("targettarget", unit) == 1)