Skip to content

Core/Spells: Use SpellDiminish.db2 for diminishing returns reset time and levels - #32157

Open
Nyr97 wants to merge 2 commits into
TrinityCore:masterfrom
Nyr97:master_SpellDiminish
Open

Nyr97 wants to merge 2 commits into
TrinityCore:masterfrom
Nyr97:master_SpellDiminish

Conversation

@Nyr97

@Nyr97 Nyr97 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Changes proposed:

  • Load SpellDiminish.db2, diminishing returns now take each category's reset time, multiplier and stacks from it instead of hardcoded values.
  • Reset time is the category Duration (12.1.5: 20s, Taunt 15s, AoE Knockback 10s) instead of 18s for every group.
  • Players and units affected like players become immune after ImmunityStacks applications (100% / 50% / immune), other units keep diminishing by Multiplier up to MaxStacks and are never made immune (stuns floor at 1/16, taunts at 0.65^4), AoE Knockback has Multiplier 1 and is no longer diminished.

Issues addressed:

  • The reset time and levels were hardcoded for older expansions and no longer match the client data.

Tests performed:

  • Tested in game with Hammer of Justice (853) on a player: full, half, then immune, and full again 20 seconds after the last stun ends.
  • Tested in game with Hammer of Justice on a creature: each stun lasts half as long down to 1/16, never immune.

Known issues and TODO 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