Core/Unit: Add proc cooldown to all units (#17546)

(cherry picked from commit 0b9854428657bd5c988e7aeda5b6e4df9a72131a)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
This commit is contained in:
Golrag
2017-02-05 00:57:18 +01:00
committed by joschiwald
parent 9046483f3c
commit 140d7828c8
+1 -2
View File
@@ -11717,9 +11717,8 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u
bool prepare = i->aura->CallScriptPrepareProcHandlers(aurApp, eventInfo);
// For players set spell cooldown if need
Milliseconds cooldown = Milliseconds::zero();
if (prepare && GetTypeId() == TYPEID_PLAYER)
if (prepare)
{
cooldown = Milliseconds(spellInfo->ProcCooldown);
if (i->spellProcEvent && i->spellProcEvent->cooldown)