mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Core/Spells): readd 33% chance for lightning overload to fail on chain lightning (#21645)
This commit is contained in:
@@ -8412,7 +8412,15 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
||||
if (!procSpell || !IsPlayer() || !victim)
|
||||
return false;
|
||||
|
||||
uint32 spell = procSpell->SpellFamilyFlags[0] & 0x2 ? 45297 : 45284;
|
||||
uint32 spell = 45284;
|
||||
|
||||
// chain lightning only procs 1/3 of the time
|
||||
if (procSpell->SpellFamilyFlags[0] & 0x2)
|
||||
{
|
||||
if (!roll_chance_i(33))
|
||||
return false;
|
||||
spell = 45297;
|
||||
}
|
||||
|
||||
if (procEx & PROC_EX_CRITICAL_HIT)
|
||||
damage /= 2;
|
||||
|
||||
Reference in New Issue
Block a user