Skip to content

Core/Aura: Fix periodic crit chance snapshot for DoTs#459

Merged
Ovahlord merged 1 commit intoThe-Cataclysm-Preservation-Project:masterfrom
gonzo1247:Dot-Crit-Fix
Feb 3, 2026
Merged

Core/Aura: Fix periodic crit chance snapshot for DoTs#459
Ovahlord merged 1 commit intoThe-Cataclysm-Preservation-Project:masterfrom
gonzo1247:Dot-Crit-Fix

Conversation

@gonzo1247
Copy link
Contributor

Changes proposed:

Aura::CalcPeriodicCritChance used the non-periodic crit path when
calculating the crit chance snapshot, which requires SPELL_ATTR0_CU_CAN_CRIT.
Pure periodic spells do not have this attribute, resulting in a zero
crit chance snapshot even when SPELL_ATTR8_PERIODIC_CAN_CRIT is set.

Use the periodic crit path when calculating periodic crit chance so
DoTs can correctly crit.

Tests performed: (Does it build, tested in-game, etc)
build

Ingame:
Tested with Shadow Word: Pain (589) and Bane of Agony (980).
After the fix, periodic ticks correctly crit according to caster spell crit chance.

@Ovahlord Ovahlord merged commit ecd9870 into The-Cataclysm-Preservation-Project:master Feb 3, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments