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

(cherry picked from commit 0b98544286)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
This commit is contained in:
Golrag
2016-07-08 21:52:30 +02:00
committed by joschiwald
parent 9046483f3c
commit 140d7828c8

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)