Skip to content

Core/Spells: Use PvPDurationIndex as the PvP duration limit of diminished spells - #32155

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

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

Conversation

@Nyr97

@Nyr97 Nyr97 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Changes proposed:

  • Diminished spells now take their PvP duration limit from SpellMisc PvPDurationIndex instead of a hardcoded list, spells without it keep the 8 seconds default.
  • Interrupts between players now lock the school for the PvP duration, e.g. Kick 3s instead of 6s, Counterspell 5s instead of 7s, Wind Shear 2s instead of 4s.

Issues addressed:

  • The list matched the field for Dragon's Breath (3s), Cripple (4s) and Wyvern Sting (6s) but is outdated for Paralysis (now 3s), Imprison (3s) and Binding Shot (2s), and the family flag it used for Wyvern Sting now matches Survival of the Fittest instead.
  • 419 spells have it, e.g. Polymorph 6s, Blind 5s, Cheap Shot 4s and Kidney Shot up to 5s.

Tests performed:

  • Tested in game with Polymorph (118) on a player: it lasts 6 seconds instead of 8.
  • Tested in game with Kick (1766) on a casting player: the school is locked for 3 seconds instead of 6.

Known issues and TODO list:

  • Interrupt lockouts on players (Kick 3s, Counterspell 5s) and spells without a diminishing returns group (Hunter's Mark, curses, slows) also have a PvP duration and still use the normal one.
  • Baked into the same PR.

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