Skip to content

Core/Spells: Use SpellCategories DiminishType for diminishing returns groups - #32156

Open
Nyr97 wants to merge 1 commit into
TrinityCore:masterfrom
Nyr97:master_DiminishType
Open

Nyr97 wants to merge 1 commit into
TrinityCore:masterfrom
Nyr97:master_DiminishType

Conversation

@Nyr97

@Nyr97 Nyr97 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Changes proposed:

  • Diminishing returns groups now come from SpellCategories DiminishType, a mask of SpellDiminish.db2 ids (1 Root, 2 Taunt, 3 Stun, 4 AoE Knockback, 5 Incapacitate, 6 Disorient, 7 Silence, 8 Disarm), the hardcoded list stays as a fallback for spells without it.
  • Added DIMINISHING_DISARM for the Disarm category.

Issues addressed:

  • DiminishType was loaded but never read, every group came from the hardcoded list.
  • 1616 spells have it, this covers spells missing from the list and fixes outdated entries, e.g. Mind Control (605) and Dragon's Breath (31661) are Disorient, not Incapacitate.

Tests performed:

  • Tested in game with Dragon's Breath (31661) followed by Blind (2094) on a player: Blind lasts half as long since both are Disorient.

Known issues and TODO list:

  • 17 spells have two categories (mostly Incapacitate and Disorient, e.g. Intimidating Shout 316593), only the first one is used.
  • Spells the data marks as not diminished (Arcane Torrent, Solar Beam, Ice Nova, Cripple) still get their group from the hardcoded list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant