Commit Graph

121 Commits

Author SHA1 Message Date
Jrc13245 2fd4ac3298 reduce bag event usage for lag and fix macro calling within macros 2025-12-12 15:43:21 -05:00
Jrc13245 35cce7e61a fix overflow debuffs 2025-12-11 22:22:46 -05:00
Jrc13245 9c1f8649eb update channeling to respect arcane missiles haste 2025-12-10 17:56:57 -05:00
Jrc13245 8d7b9086d9 fix debuff and buff not using new operator usage properly 2025-12-10 08:49:50 -05:00
Jrc13245 b36416f38a revert & / noable multi usage 2025-12-08 14:17:56 -05:00
Jrc13245 0f4392b590 update how & and / work in conditionals to be more user friendly 2025-12-08 10:46:56 -05:00
Jrc13245 25048490a1 fix slam base cast speed to match turtle 2025-12-06 14:20:55 -05:00
Jrc13245 38158d8b8f warrior slam specific condditionals and update readme 2025-12-06 14:19:14 -05:00
Jrc13245 fdaa2a108c twthreat conditional integration, ttk conditional integration, quickheal conditional integration 2025-12-05 22:38:43 -05:00
Jrc13245 442eeb9cbc fix lag of casting and channeling conditionals. 2025-12-02 15:24:48 -05:00
Jrc13245 ce017f5832 fix lower rank spells showing as refreshing higher ranks in pfui. further improve debuff duration handling. 2025-11-30 19:25:19 -05:00
Jrc13245 42522cfd18 fix shared debuffs 2025-11-30 11:16:23 -05:00
Jrc13245 c0d5c1fbb2 correct dodge parry block immune for personal debuff tracking 2025-11-30 09:18:22 -05:00
Jrc13245 003bf39c22 really fix checking your own debuff timers for personal debuffs 2025-11-30 09:00:58 -05:00
Jrc13245 bc40ba17ab fix only checking your debuff casts and buff timers 2025-11-30 08:27:57 -05:00
Jrc13245 964df2133b fix toggle spells icon swaps like prowl and shadowmeld and fix debuff conditionals correctly filtering by caster for shared and individual debuffs 2025-11-29 21:54:59 -05:00
Jrc13245 dd84ca0f66 fix boss level as level 63 and fix partial block resists 2025-11-28 21:56:55 -05:00
Jrc13245 d59ccc0821 fix immunity system lag 2025-11-28 21:40:05 -05:00
Jrc13245 6486c87798 fix multi and negated multi conditionals using / and & 2025-11-28 15:06:42 -05:00
Jrc13245 1f4781165f fix channeltime 2025-11-27 21:01:25 -05:00
Jrc13245 5b5d8860c5 new conditional channeltime and bump version 2025-11-27 18:18:54 -05:00
Jrc13245 8764fc1dd3 all multi conditionals will now use / or & 2025-11-27 16:52:11 -05:00
Jrc13245 b188fc85f3 fix some issuues with OR on mybuff, mydebuff, buff, debuff, inrange, outrange, checkchanneled 2025-11-27 16:38:53 -05:00
Jrc13245 ff6ec25c06 bleed immunity, fix icons and their tooltips with no available actions, reformat readme 2025-11-27 09:21:41 -05:00
Jrc13245 83d95219f2 usable conditional checking existence of regeant for use 2025-11-26 17:05:37 -05:00
Jrc13245 5e26b776eb fix negated conditionals using multi and fix revenge proc from reactive 2025-11-26 13:32:23 -05:00
Jrc13245 6a4f7a417c fix revenge reactive and majorly improve pfui compatibility for icons and actionbars 2025-11-26 07:48:12 -05:00
Jrc13245 21119c8bd5 fix reactive for overpower and revenge to see as active in any stance. 2025-11-25 16:58:44 -05:00
Jrc13245 139c95ba22 new conditional powertype 2025-11-25 15:10:02 -05:00
Jrc13245 a33f3f21db clarify actual multi and noable multi usage, add AND operator for multi, and fix swintimer to be more intuitive. 2025-11-25 14:23:54 -05:00
Jrc13245 6261785507 memory and cpu usage overhaul 2025-11-25 07:41:04 -05:00
Jrc13245 1ff4da7471 fix nocasting conditional 2025-11-24 22:43:56 -05:00
Jrc13245 9dcc2446b7 new conditional swingtimer and druid set bonus debuff durations and warrior talent debuff durations 2025-11-23 16:16:53 -05:00
Claude 62c39f71cf Fix Lua 5.1 compatibility: remove goto statement from ValidateUnitDebuff
- Replaced goto/label with shouldSkip flag variable
- Lua 5.1 (used in WoW 1.12) doesn't support goto statements
- Functionality remains identical
2025-11-17 18:35:32 +00:00
Claude b8cc607d90 Reorganize debuff durations into personal and shared tables
Changes:
- Split lib.durations into lib.personalDebuffs and lib.sharedDebuffs
- Removed combo-scaling spells (Rupture, Rip, Kidney Shot) from static tables
  since they are handled dynamically by ComboPointTracker
- Added lib:IsPersonalDebuff() helper to distinguish debuff types
- Updated ValidateUnitDebuff to auto-detect personal vs shared debuffs
- Personal debuffs (DoTs, poisons, most CC) now auto-filter to player by default
- Shared debuffs (Sunder, Faerie Fire, Hunter's Mark) remain unfiltered
- Maintained lib.durations for backwards compatibility

This prevents false positives when checking personal debuffs like Rupture
in multi-player scenarios while allowing shared debuffs like Sunder Armor
to work correctly.
2025-11-17 18:28:58 +00:00
Claude a570c41245 Add 'mine' parameter to ValidateUnitDebuff for personal debuff tracking
- ValidateUnitDebuff now supports args.mine to filter player-cast debuffs
- Fixes issue where personal debuffs (Rupture, Rip) from other players
  were incorrectly matched when checking timeleft
- Shared stacking debuffs (Sunder Armor) continue to work as expected
- Uses new lib:UnitDebuff filterCaster parameter internally
2025-11-17 18:20:25 +00:00
Torio 55c0b2d0cf Merge pull request #45 from jrc13245/main
fix debuff validation
2025-11-16 18:59:20 -05:00
Claude 30bb3599fb Extend overflow debuff checking to all 32 buff slots
Previously, lib:UnitDebuff() callers only looped through indices 1-16, which
meant overflow debuffs in buff slots 17-32 were never detected.

Changed loop range from 1-16 to 1-32:
- _get_debuff_timeleft() loops (Conditionals.lua:93, 105)
- ValidateUnitDebuff() loop (Conditionals.lua:802)
- Added missing "if not effect then break end" check (Conditionals.lua:804)

How lib:UnitDebuff(unit, index) works:
- Index 1-16: Checks debuff slot, falls back to buff slot at same index
- Index 17-32: No debuff slots exist, so checks buff slots 17-32

Since a debuff can only exist in ONE location (either debuff slot OR buff slot),
checking 1-32 covers all 16 debuff slots + all 32 buff slots efficiently.
2025-11-16 23:47:08 +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
Torio 8449dd3382 Merge pull request #21 from AdmiralFrijoles/main
New conditionals level and mylevel
2025-11-14 07:18:30 -05:00
Jrc13245 92562ab1a4 Fix macro icons with syntax not using conditionals and fix imbue conditionals 2025-11-13 15:46:00 -05:00
Jrc13245 a3b8848449 fix conditionals icons when used with slot numbers 2025-11-11 15:14:06 -05:00
Jrc13245 b9cd6a8802 make buff and debuff validations exact buff names and not string parts 2025-11-11 11:08:37 -05:00
Jrc13245 914d9ab916 fix errors ddue to missing comma 2025-11-10 19:45:44 -05:00
Jrc13245 84f5d63be8 fix new conditionals 2025-11-10 19:09:01 -05:00
Jrc13245 e088ae4029 new weapon imbue check conditionals 2025-11-10 18:02:59 -05:00
Jrc13245 4661f0f924 more equip fixes 2025-11-09 13:09:16 -05:00
Jrc13245 1427c4481f fix equip errors 2025-11-09 12:48:56 -05:00
Jrc13245 5845e811b4 update reactive and add usable conditionals 2025-11-08 18:13:24 -05:00