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

Port From (https://github.com/TrinityCore/TrinityCore/commit/5f70be050f971ee70da8953c4f094cb2adc233f8)
This commit is contained in:
hondacrx
2019-08-31 11:12:07 -04:00
parent f7f2930ac8
commit 9ef63a86cf
4 changed files with 46 additions and 1 deletions
+1 -1
View File
@@ -3304,7 +3304,7 @@ namespace Game.Entities
else if (chance > 100.0f)
chance = GetWeaponProcChance();
if (RandomHelper.randChance(chance))
if (RandomHelper.randChance(chance) && Global.ScriptMgr.OnCastItemCombatSpell(this, damageInfo.GetVictim(), spellInfo, item))
CastSpell(damageInfo.GetVictim(), spellInfo.Id, true, item);
}
}