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; procEntry.Charges = spellInfo.ProcCharges;
if (procEntry.Chance == 0 && procEntry.ProcsPerMinute == 0) if (procEntry.Chance == 0 && procEntry.ProcsPerMinute == 0)
procEntry.Chance = spellInfo.ProcChance; procEntry.Chance = spellInfo.ProcChance;
if (procEntry.Cooldown == 0)
procEntry.Cooldown = spellInfo.ProcCooldown;
// validate data // validate data
if (Convert.ToBoolean(procEntry.SchoolMask & ~SpellSchoolMask.All)) if (Convert.ToBoolean(procEntry.SchoolMask & ~SpellSchoolMask.All))
@@ -1353,7 +1355,7 @@ namespace Game.Entities
procEntry.ProcsPerMinute = 0; procEntry.ProcsPerMinute = 0;
procEntry.Chance = spellInfo.ProcChance; procEntry.Chance = spellInfo.ProcChance;
procEntry.Cooldown = 0; procEntry.Cooldown = spellInfo.ProcCooldown;
procEntry.Charges = spellInfo.ProcCharges; procEntry.Charges = spellInfo.ProcCharges;
mSpellProcMap[spellInfo.Id] = procEntry; mSpellProcMap[spellInfo.Id] = procEntry;