mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Spells: Fixed proc cooldown
This commit is contained in:
@@ -1352,6 +1352,8 @@ void SpellMgr::LoadSpellProcs()
|
||||
procEntry.Charges = spellInfo->ProcCharges;
|
||||
if (!procEntry.Chance && !procEntry.ProcsPerMinute)
|
||||
procEntry.Chance = float(spellInfo->ProcChance);
|
||||
if (procEntry.Cooldown == Milliseconds::zero())
|
||||
procEntry.Cooldown = Milliseconds(spellInfo->ProcCooldown);
|
||||
|
||||
// validate data
|
||||
if (procEntry.SchoolMask & ~SPELL_SCHOOL_MASK_ALL)
|
||||
@@ -1566,7 +1568,7 @@ void SpellMgr::LoadSpellProcs()
|
||||
|
||||
procEntry.ProcsPerMinute = 0;
|
||||
procEntry.Chance = spellInfo->ProcChance;
|
||||
procEntry.Cooldown = Milliseconds::zero();
|
||||
procEntry.Cooldown = Milliseconds(spellInfo->ProcCooldown);
|
||||
procEntry.Charges = spellInfo->ProcCharges;
|
||||
|
||||
mSpellProcMap[spellInfo->Id] = procEntry;
|
||||
|
||||
Reference in New Issue
Block a user