Core/Spells: Fixed proc cooldown
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user