From 7e0327bb78a39f98a212b2eab30712927f45e3d2 Mon Sep 17 00:00:00 2001 From: 4n0n <4n0n@tinkr.site> Date: Wed, 18 Jan 2023 18:24:46 -0600 Subject: [PATCH] AOe optimizations --- scripts/subtlety.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/subtlety.lua b/scripts/subtlety.lua index 18e7909..95efc48 100644 --- a/scripts/subtlety.lua +++ b/scripts/subtlety.lua @@ -581,19 +581,19 @@ AOEAPL:AddSpell( ) -- Cast Rupture on all targets. (scam??) --- AOEAPL:AddSpell( --- Rupture:CastableIf(function(self) --- return RuptureTarget:Exists() and Player:InMelee(RuptureTarget) and --- self:IsKnownAndUsable() and --- not Player:IsCastingOrChanneling() and --- (Player:GetComboPoints(RuptureTarget) >= 6 or --- (Player:GetComboPoints(RuptureTarget) >= 5 and --- Player:GetAuras():FindMy(ShadowDanceAura):IsUp())) and ( --- not RuptureTarget:GetAuras():FindMy(Rupture):IsUp() or --- RuptureTarget:GetAuras():FindMy(Rupture):GetRemainingTime() < 6 --- ) --- end):SetTarget(RuptureTarget) --- ) +AOEAPL:AddSpell( + Rupture:CastableIf(function(self) + return RuptureTarget:Exists() and Player:InMelee(RuptureTarget) and + self:IsKnownAndUsable() and + not Player:IsCastingOrChanneling() and + (Player:GetComboPoints(RuptureTarget) >= 6 or + (Player:GetComboPoints(RuptureTarget) >= 5 and + Player:GetAuras():FindMy(ShadowDanceAura):IsUp())) and ( + not RuptureTarget:GetAuras():FindMy(Rupture):IsUp() or + RuptureTarget:GetAuras():FindMy(Rupture):GetRemainingTime() < 6 + ) + end):SetTarget(RuptureTarget) +) AOEAPL:AddSpell( SecretTechnique:CastableIf(function(self)