Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60

Closes #15734

missing code
(cherry picked from commit eac9c1f0b992fd3622fd7dd864b2acc2781ec778)
This commit is contained in:
ariel- authored and funjoker committed 2022-02-16 04:49:24 +01:00
1 parent a627ea354a
commit 5e57ad6fa8
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -7983,7 +7983,7 @@ void Player::CastItemCombatSpell(DamageInfo const& damageInfo, Item* item, ItemT
else if (chance > 100.0f)
chance = GetWeaponProcChance();
if (roll_chance_f(chance))
if (roll_chance_f(chance) && sScriptMgr->OnCastItemCombatSpell(this, damageInfo.GetVictim(), spellInfo, item))
CastSpell(damageInfo.GetVictim(), spellInfo->Id, item);
}
}