Skip to content

[Decomp][Spell] Cohesion split: extract SpellAuras.cpp handlers to SpellAura*.cpp - #219

Merged
billy1arm merged 2 commits into
mangostwo:masterfrom
r-log:decomp/spellauras-cohesion
Jun 29, 2026
Merged

[Decomp][Spell] Cohesion split: extract SpellAuras.cpp handlers to SpellAura*.cpp#219
billy1arm merged 2 commits into
mangostwo:masterfrom
r-log:decomp/spellauras-cohesion

Conversation

@r-log

@r-log r-log commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Mirror of mangosthree #188-195 (bundled — all touch SpellAuras.cpp). Pure cohesion split of SpellAuras.cpp (12,928 → 6,069 lines) with no behaviour change. The 151 Aura::HandleXxx / SpellAuraHolder handlers move to 8 dedicated TUs:

SpellAuraDummy · SpellAuraControl (carries the static frozenAuraTypes table) · SpellAuraMisc · SpellAuraShapeshift · SpellAuraPeriodic · SpellAuraTrailing · SpellAuraLate · SpellAuraAddModifier.

SpellAuras.h untouched; aura-holder lifecycle + ApplyModifier dispatch stay in SpellAuras.cpp. CMake file(GLOB) auto-compiles the new TUs. Verbatim move, no dropped/duplicated defs. Builds clean (MSVC 2022, Release).


This change is Reviewable

…ellAura*.cpp

Mirror of mangosthree mangostwo#188-195 (bundled, same source file). Pure cohesion
split of SpellAuras.cpp (12,928 -> 6,069 lines) with no behaviour change.
The Aura::HandleXxx / SpellAuraHolder handlers move to dedicated TUs:

- SpellAuraDummy.cpp       - HandleAuraDummy.
- SpellAuraControl.cpp     - crowd-control + immunity handlers (carries the
  static frozenAuraTypes table).
- SpellAuraMisc.cpp        - shapeshift-boost/absorb/misc handlers.
- SpellAuraShapeshift.cpp  - shapeshift/movement handlers.
- SpellAuraPeriodic.cpp    - periodic + stat handlers.
- SpellAuraTrailing.cpp    - trailing handlers.
- SpellAuraLate.cpp        - late crit/mastery/vehicle handlers.
- SpellAuraAddModifier.cpp - HandleAddModifier.

SpellAuras.h is unchanged; aura holder lifecycle / ApplyModifier dispatch
stay in SpellAuras.cpp. CMake file(GLOB) auto-compiles the new TUs.
@codacy-production

codacy-production Bot commented Jun 29, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 1476 complexity · 43 duplication

Metric Results
Complexity 1476
Duplication 43

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Codacy/Cppcheck flagged the `caster &&` condition as always-true: the
method early-returns on `if (!caster)` near the top, so caster cannot be
null at this point. No behaviour change.
@billy1arm
billy1arm merged commit 4897804 into mangostwo:master Jun 29, 2026
7 of 8 checks passed
@AppVeyorBot

Copy link
Copy Markdown

@r-log
r-log deleted the decomp/spellauras-cohesion branch June 30, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants