Skip to content

Commit

Permalink
Fix proc chance of spell 23170
Browse files Browse the repository at this point in the history
It should only be cast 10% of the time, not on every periodic tick
  • Loading branch information
cala committed Nov 7, 2017
1 parent 4e707a3 commit d609287
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/Spells/SpellAuras.cpp 100644 → 100755
Expand Up @@ -1139,6 +1139,9 @@ void Aura::TriggerSpell()
// case 21916: break;
case 23170: // Brood Affliction: Bronze
{
// Only 10% chance of triggering spell, return for the remaining 90%
if (urand(0, 9) >= 1)
return;
target->CastSpell(target, 23171, TRIGGERED_OLD_TRIGGERED, nullptr, this);
return;
}
Expand Down

0 comments on commit d609287

Please sign in to comment.