Core/Spells: Fixed proc cooldown

This commit is contained in:
hondacrx
2017-12-26 15:11:23 -05:00
parent 303c56950b
commit f4dcf871cc
+3 -1
View File
@@ -1214,6 +1214,8 @@ namespace Game.Entities
procEntry.Charges = spellInfo.ProcCharges;
if (procEntry.Chance == 0 && procEntry.ProcsPerMinute == 0)
procEntry.Chance = spellInfo.ProcChance;
if (procEntry.Cooldown == 0)
procEntry.Cooldown = spellInfo.ProcCooldown;
// validate data
if (Convert.ToBoolean(procEntry.SchoolMask & ~SpellSchoolMask.All))
@@ -1353,7 +1355,7 @@ namespace Game.Entities
procEntry.ProcsPerMinute = 0;
procEntry.Chance = spellInfo.ProcChance;
procEntry.Cooldown = 0;
procEntry.Cooldown = spellInfo.ProcCooldown;
procEntry.Charges = spellInfo.ProcCharges;
mSpellProcMap[spellInfo.Id] = procEntry;