From 03a38fd4b821058b3ef48a9fd8a4e97c7f7059fb Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Thu, 21 Aug 2025 16:15:41 -0700 Subject: [PATCH] check for rupture talent --- Cursive.toc | 4 ++-- spells/rogue.lua | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Cursive.toc b/Cursive.toc index badcbca..1f39f03 100644 --- a/Cursive.toc +++ b/Cursive.toc @@ -1,6 +1,6 @@ ## Interface: 11200 -## Title: [|CFF33AAFFSUPERWOW|R] Cursive 2.4.6 -## Title-zhCN: [|CFF33AAFFSUPERWOW|R] Cursive 2.4.6 +## Title: [|CFF33AAFFSUPERWOW|R] Cursive 2.4.7 +## Title-zhCN: [|CFF33AAFFSUPERWOW|R] Cursive 2.4.7 ## Author: Pepopo ## Notes: Uses SuperWoW GUIDs to show units in combat and track curses ## Notes-zhCN: 使用SuperWoW的GUID功能来显示战斗中的单位并监视诅咒等 diff --git a/spells/rogue.lua b/spells/rogue.lua index 924de5c..becddce 100644 --- a/spells/rogue.lua +++ b/spells/rogue.lua @@ -9,7 +9,14 @@ function getGougeDuration() end function getRuptureDuration() - return 6 + GetComboPoints() * 2 + local duration = 6 + GetComboPoints() * 2 + + local _, _, _, _, count = GetTalentInfo(1, 10) + if count and count > 0 then + return duration + (count * 2) + end + + return duration end function getKidneyShotDuration()