You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(Core/Spells): Fix Raise Dead cooldown - #28612
Raise Dead (46584) starts its cooldown on an event, and the client locks it on cast. The ghoul is summoned by another spell (46585 guardian, or 52150 pet with Master of Ghouls), and all three share category 1245. Only the summon spell held that category, so when the ghoul went away the server started the category cooldown but never sent the cooldown event for Raise Dead: the client showed no cooldown while the server answered "Spell is not ready yet".
Raise Dead now holds the category itself, so SpellHistory::SendCooldownEvent for the summon also sends Raise Dead's event and starts its cooldown. Two places set that hold, and each covers a path the other can't:
Script, after the cast (ported from TrinityCore): covers the first summon. Player::SummonPet calls SetMinion before EffectSummonPet sets the pet's created-by spell, so SetMinion can't see 52150 on that cast.
Unit::SetMinion (new, not in TrinityCore): when a minion's on-event spell is held, the owner's own on-event spells of the same category and spell family are held too. This covers every resummon of the Master of Ghouls pet after a temporary unsummon (mount, vehicle, far teleport, map change, battleground) and a relog with the ghoul up. Without it, the cooldown event sent on the temporary unsummon released Raise Dead, the resummon re-held only 52150, and the ghoul's later death left the client showing Raise Dead ready while the server blocked it. In Spell.dbc, only category 1245 has an on-event summon sharing its category with another on-event spell, so this reaches Raise Dead alone.
Other changes a reviewer might miss:
The ResetCooldown call after the summon is removed. TrinityCore never had it, and under SpellHistory it did nothing, since cooldown-on-event spells get no entry at cast time.
All three spells share spell family flags 0x1000, so Master of Ghouls and Night of the Dead shorten the summon's and Raise Dead's cooldowns alike, and the client and server timers match.
Commit 774a6cd's message says it replaces the after-cast hold; the next commit restores it, and both holds stay, for the reasons above.
e2e: TestAC_25337_RaiseDeadCooldownStartsWhenGhoulDies (guardian ghoul's death sends Raise Dead's cooldown event) and TestAC_25337_RaiseDeadCooldownAfterGhoulResummon (a Master of Ghouls ghoul resummoned after a mount still sends it on death, and Raise Dead is free again after the 30s the talents leave) in e2e/suites/spells/cooldown/, plus the e2e/README.md inventory row.
AI-assisted Pull Requests
Important
Using AI tools to prepare pull requests is allowed, but it must be disclosed and it must follow our AC guidelines for AI Agentic Engineering (link below).
You are expected to fully understand the changes you submit and to be able to explain and justify them when maintainers ask.
AI tools (e.g. Claude, ChatGPT, or similar) were used entirely or partially to prepare this pull request. If checked, specify which tools and models below.
Tools/models used: Claude Code with Claude Opus 5.5
Live research (checked on live servers, e.g Classic WotLK, Retail, etc.)
Sniffs (remember to share them with the open source community!)
Video evidence, knowledge databases or other public sources (e.g forums, Wowhead, etc.)
The changes promoted by this pull request come partially or entirely from another project (cherry-pick). Cherry-picks must be committed using the proper --author tag in order to be accepted, thus crediting the original authors, unless otherwise unable to be found
The Unit::SetMinion hold is this PR's own work; TrinityCore's SetMinion holds only the minion's spell.
Tests Performed:
This PR has been:
Tested in-game by the author.
Tested in-game by other community members/someone else other than the author/has been live on production servers.
This pull request requires further testing and may have edge cases to be tested.
How to Test the Changes:
This pull request can be tested by following the reproduction steps provided in the linked issue
This pull request requires further testing. Provide steps to test your changes. If it requires any specific setup e.g multiple players please specify it as well.
On a death knight with Night of the Dead, cast Raise Dead with Corpse Dust (.additem 37201 5). The button stays unusable while the ghoul is up.
Kill the ghoul (.die on it): the button shows the cooldown and Raise Dead works again once it ends.
Repeat with Glyph of Raise Dead equipped and no Corpse Dust.
With Master of Ghouls: summon the ghoul, mount and dismount (or teleport to another map), then kill the ghoul. The button stays unusable while the ghoul is up and shows the cooldown once it dies. Repeat after a relog with the ghoul up.
Sacrifice the ghoul with Death Pact: the cooldown shows the same way.
Known Issues and TODO List:
If the ghoul summon fails after Raise Dead's cast succeeds, Raise Dead stays held until relog. TrinityCore behaves the same.
How to Test AzerothCore PRs
When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].
You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:
REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).
For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.
Raise Dead starts its cooldown on an event, and the client locks it on
cast. The ghoul is summoned by a triggered spell, so only that summon
held the shared category and the cooldown event on the ghoul's death
never reached Raise Dead: the client showed no cooldown while the server
kept the spell unusable. Hold the category on Raise Dead after the cast
so that event also releases and starts its cooldown.
Drop the cooldown reset after the summon, which TrinityCore never had.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Raise Dead now uses an AfterCast hook to start its cooldown after the cast completes. This replaces the previous cooldown reset.
Severity of issue fixed: Medium
Merge Risk: Moderate · up to 0b8a2
Raise Dead now holds its cooldown category after every cast. If the ghoul summon fails, the spell may stay unavailable with no ghoul until a later successful summon or a relog. This should be resolved or explicitly accepted before merge.
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.
Reviewing files that changed from the base of the PR and between f971235 and 0b8a2a8.
Files selected for processing: 1
src/server/scripts/Spells/spell_dk.cpp
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 2 remain after this review.
Unit::SetMinion now also holds the owner's on-event spells of the
minion spell's category, so the cooldown event sent when the ghoul is
removed reaches Raise Dead after a resummon (mount, vehicle, teleport,
battleground) or a relog, not only after the first cast. This replaces
the AfterCast hold, which also held Raise Dead when the summon failed.
Player::SummonPet calls SetMinion before EffectSummonPet sets the pet's
created-by spell, so a fresh Master of Ghouls ghoul never held Raise
Dead through SetMinion. Hold it after the cast again, as TrinityCore
does.
Nyeriah
changed the title
fix(Scripts/Spells): Fix Raise Dead cooldown
fix(Core/Spells): Fix Raise Dead cooldown
Nov 29, 2026
The guardian ghoul's death and a Master of Ghouls pet ghoul's death
after a mount resummon must both send Raise Dead's own cooldown event,
and the pet case must free Raise Dead after the 30s its talents leave.
A Raise Dead recast rejected as not ready sends its own cooldown event
right after the cast failure. Clearing the event log as soon as the
cast returned let that event land afterwards and stand in for the one
the ghoul's death must send.
The pet waiters fall back to any unit the player summoned, so the
original ghoul satisfied both the unsummon and the resummon wait before
the mount removed it. Wait for that ghoul to leave the object cache,
then for a ghoul with a new GUID.
Outcome 3 new findings, all fixed, final round clean. The 6 findings carried over from the first review are all applied.
Reviewed098e4442a9 (fix/dk-raise-dead-cooldown vs upstream/master, merge-base diff: 4 files, +232 −2)
By Claude Code, Claude Opus 5.5 (self-review v0.10, 2026-11-29)
Tested The spells/cooldown e2e suite passed twice (-count=2) on a local build of 098e4442a9, including both new TestAC_25337_* tests. They have not been run against an unfixed core.
Review details (rounds 3–4)
Intent Make Death Knight Raise Dead (46584) show and release its cooldown correctly once its ghoul (46585 or 52150) is gone, including after the pet ghoul is temporarily unsummoned and resummoned, with live e2e coverage.
Project rules.agents/docs/self-review-rules.md found and applied (pinned review, fixes committed before each round).
Diff677e40c5bac50f80f281bbdad4d3ee772aa2086a
Metadataa0133bb0749212a9879a2431d70d2ace825cab42
Findings 1–6 come from the first pass and are listed under rounds 1–2 below. The metadata drafts for findings 2, 4, 5 and 6 were applied to the PR and re-read in round 3.
Round 1: 0b8a2a8108, 3 findings
Unit::SetMinion: a Master of Ghouls ghoul resummoned after a mount, teleport or battleground re-held only 52150, so its death left Raise Dead shown ready while the server blocked it → fixed (774a6cd78f)
PR body: Closes #25337 without covering its Glyph of Raise Dead repro → fixed (glyph note and test step)
spell_dk.cpp: CodeRabbit thread on the after-cast hold sticking when the summon fails → dismissed: its scenario can't occur, and the hold is needed because Player::SummonPet calls SetMinion before the created-by spell is set. It matches TrinityCore, and a reply is posted.
Round 2: aa0470f662, delta 0b8a2a8108..aa0470f662 plus the commit subjects, 3 findings
Commit 774a6cd78f message: claims the after-cast hold is replaced, but aa0470f662 restored it → fixed in the body
For the local run, the worldserver was started with AC_CHARACTER_CREATING_MIN_LEVEL_FOR_HEROIC_CHARACTER=0, because the local auth DB lacks RBAC permission 18 for GM accounts. CI's clean DB has it.
Round 3: c041b855b1, delta aa0470f662..c041b855b1 (the e2e test and the README row) plus the applied PR metadata, 3 findings
raise_dead_e2e_test.goassertRaiseDeadNotReady: a rejected recast's own cooldown event could land after the log reset, so both tests could pass on the unfixed core → fixed (829fedc83f)
PR body: Refs #27081 with no remainder stated → fixed (body applied)
PR body: the new e2e tests and the README row not named → fixed (body applied)
Round 4: 098e4442a9, delta c041b855b1..098e4442a9 plus the commit subjects and body, clean
The delta also has 098e4442a9. It tracks the ghoul by GUID across the mount, after the local run showed the harness pet waiters matching the original ghoul.
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
CORERelated to the coree2eThis PR contains a end-to-end testfile-cppUsed to trigger the matrix buildScriptRefers to C++ Scripts for the Core
4 participants
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.
Changes Proposed:
This PR proposes changes to:
Raise Dead (46584) starts its cooldown on an event, and the client locks it on cast. The ghoul is summoned by another spell (46585 guardian, or 52150 pet with Master of Ghouls), and all three share category 1245. Only the summon spell held that category, so when the ghoul went away the server started the category cooldown but never sent the cooldown event for Raise Dead: the client showed no cooldown while the server answered "Spell is not ready yet".
Raise Dead now holds the category itself, so
SpellHistory::SendCooldownEventfor the summon also sends Raise Dead's event and starts its cooldown. Two places set that hold, and each covers a path the other can't:Player::SummonPetcallsSetMinionbeforeEffectSummonPetsets the pet's created-by spell, soSetMinioncan't see 52150 on that cast.Unit::SetMinion(new, not in TrinityCore): when a minion's on-event spell is held, the owner's own on-event spells of the same category and spell family are held too. This covers every resummon of the Master of Ghouls pet after a temporary unsummon (mount, vehicle, far teleport, map change, battleground) and a relog with the ghoul up. Without it, the cooldown event sent on the temporary unsummon released Raise Dead, the resummon re-held only 52150, and the ghoul's later death left the client showing Raise Dead ready while the server blocked it. In Spell.dbc, only category 1245 has an on-event summon sharing its category with another on-event spell, so this reaches Raise Dead alone.Other changes a reviewer might miss:
ResetCooldowncall after the summon is removed. TrinityCore never had it, and under SpellHistory it did nothing, since cooldown-on-event spells get no entry at cast time.SPELL_AURA_NO_REAGENT_USEon Raise Dead and doesn't touch the cooldown path. The symptom in [Item] - "Glyph of Raise Dead" for Death Knight results in no cooldown being displaying and not following the normal or talent cooldown #25337 reproduces without it, as a commenter there notes.TestAC_25337_RaiseDeadCooldownStartsWhenGhoulDies(guardian ghoul's death sends Raise Dead's cooldown event) andTestAC_25337_RaiseDeadCooldownAfterGhoulResummon(a Master of Ghouls ghoul resummoned after a mount still sends it on death, and Raise Dead is free again after the 30s the talents leave) ine2e/suites/spells/cooldown/, plus thee2e/README.mdinventory row.AI-assisted Pull Requests
Important
Using AI tools to prepare pull requests is allowed, but it must be disclosed and it must follow our AC guidelines for AI Agentic Engineering (link below).
You are expected to fully understand the changes you submit and to be able to explain and justify them when maintainers ask.
Issues Addressed:
SOURCE:
The changes have been validated through:
TrinityCore 3.3.5 (the script's after-cast hold):
The
Unit::SetMinionhold is this PR's own work; TrinityCore'sSetMinionholds only the minion's spell.Tests Performed:
This PR has been:
How to Test the Changes:
.additem 37201 5). The button stays unusable while the ghoul is up..dieon it): the button shows the cooldown and Raise Dead works again once it ends.Known Issues and TODO List:
How to Test AzerothCore PRs
When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].
You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:
http://www.azerothcore.org/wiki/How-to-test-a-PR
REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).
For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.