Commit Graph
10 Commits
Author SHA1 Message Date
Claude 2935e036d4 Fix debuff overflow duration tracking for learned durations
Fixed three issues preventing overflowed debuffs from being properly tracked
with duration information, especially for debuffs with learned durations:

1. lib:UnitDebuff() (line 760): Changed overflow check from only checking
   static database (lib.durations[spellID]) to also checking learned durations
   via lib:GetDuration(spellID). This allows overflowed debuffs with learned
   durations to be properly returned.

2. SeedUnit() UnitBuff loop (line 807): Fixed incorrect UnitBuff() return value
   capture - was trying to get 4 values when it only returns 3, causing spellID
   to always be nil.

3. SeedUnit() both loops (lines 797, 810): Changed to use lib:GetDuration()
   instead of only checking lib.durations[], so both regular debuffs AND
   overflowed debuffs with learned durations are properly seeded into the
   tracking system.

This ensures debuff conditionals like [debuff:Moonfire<4] work correctly for
overflowed debuffs, even if the duration was learned rather than in the
static database.
2025-11-16 23:20:48 +00:00
Claude 67c639d04d Fix debuff overflow detection by correctly capturing UnitBuff return values
Fixed a critical bug where UnitBuff() calls in Utility.lua were incorrectly
capturing 4 return values instead of 3, causing the spell ID variable to
receive nil instead of the actual spell ID. This broke debuff overflow
detection where debuffs shown as buffs would not be properly identified.

According to SuperWoW documentation, the API returns:
- UnitBuff(unit, index) → texture, stacks, spellID (3 values)
- UnitDebuff(unit, index) → texture, stacks, debuffType, spellID (4 values)

Changes:
- Fixed lib:UnitDebuff() overflow fallback in Utility.lua:758
- Fixed GetUnitBuffs() helper function in Utility.lua:1108
- Fixed buff checking in CheckImmunity() function in Utility.lua:1282
- Reverted incorrect changes to Conditionals.lua (was already correct)

This resolves the issue where macros like [nodebuff:Moonfire] would spam cast
when the debuff had overflowed and was showing as a buff on the target.
2025-11-16 23:16:16 +00:00
Jrc13245 1610920dda immunity tracking system 2025-11-16 09:46:51 -05:00
Jrc13245 e088ae4029 new weapon imbue check conditionals 2025-11-10 18:02:59 -05:00
Jrc13245 8fcd17ff53 added ability to track overflow debuffs that show in buff slots on bosses in raids 2025-10-28 19:56:00 -04:00
Jrc13245 6db708f40b fix castsequence reset functionality 2025-10-25 11:34:36 -04:00
Jrc13245 8542a05170 implement standalone debuff timer system 2025-10-21 22:18:10 -04:00
Jrc13245 35a81eb29b many fixes 2025-10-05 14:24:46 -04:00
Jrc13245 a3169a7523 fix debuff timers for non pfui users 2025-10-02 13:22:47 -04:00
Jrc13245 fb359993b2 Initial Commit 2025-08-18 16:15:25 -04:00