fix: stop reading secret UNIT_AURA payload (v8.0.4) - #37
Merged
Conversation
- Use C_UnitAuras.GetPlayerAuraBySpellID (AllowedWhenTainted) as fallback - Guard addedAuras access with canaccesstable/issecrettable checks - Edge-detect lust gains via hadLust to prevent re-fire on secret updates
- Replace local event registration with RGXCombat:OnEnter/OnLeave/OnLowHealth/ OnExecuteWindow/OnTargetLost/OnResourceCapped/OnResourceLow/OnCrit/ OnCritHeal/OnProc/OnEncounterEnd/OnPvPVictory - Remove local legacy event plumbing, state flags, and threshold helpers now managed by RGXCombat - Keep BLU-specific sound/music/lust logic in local callbacks - Retain guarded UNIT_AURA handler for lust detection since OnProc does not expose aura data
Midnight 12.1 marks updateInfo.addedAuras as ConditionalSecretContents. BLU v8.0.3 iterated it directly, causing repeated callback errors propagated through RGX event dispatcher. - Remove direct UNIT_AURA registration and updateInfo.addedAuras access - Route proc handling through RGXCombat:OnProc - Route Lust/Heroism detection through RGXAuras:HasPlayerAura with edge detection (hadLust flag) so the dedicated sound fires once per gain - Add Subscribe/Cleanup lifecycle to prevent duplicate callbacks on module disable/re-enable - Bump version to v8.0.4 - Add Lua 5.1 regression test (tests/combat-secret-aura-test.lua) - Add GitHub CI workflow for Lua syntax + regression tests - Exclude tests/ from player package via .pkgmeta Requires RGX-Framework v2.5.1 or later.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughBLU migrates combat and aura handling to RGX-Framework callbacks, adds secret-aura regression coverage and CI validation, excludes tests from packages, and publishes version 8.0.4 release metadata. ChangesCombat callback migration and release
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant CombatModule
participant RGXCombat
participant RGXAuras
participant SoundPlayback
CombatModule->>RGXCombat: subscribe to combat callbacks
RGXCombat->>CombatModule: invoke proc callback
CombatModule->>RGXAuras: HasPlayerAura
RGXAuras-->>CombatModule: return Lust state
CombatModule->>SoundPlayback: play lust_sound on Lust gain
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed
Midnight 12.1 marks \updateInfo.addedAuras\ as \ConditionalSecretContents. BLU v8.0.3 iterated it directly, causing repeated callback errors propagated through the RGX event dispatcher.
Changes
Verification
Requires RGX-Framework v2.5.1 or later.
Summary by CodeRabbit
Bug Fixes
Compatibility
Documentation