Core/Unit: Add proc cooldown to all units

It will break something?
This commit is contained in:
Aokromes committed 2016-07-20 19:12:00 +02:00
1 parent a3fba746d0
commit 0cb8e628d2
1 file changed
+2 -3
+2 -3
View File
@@ -12812,9 +12812,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
uint32 cooldown = 0;
if (prepare && GetTypeId() == TYPEID_PLAYER && i->spellProcEvent && i->spellProcEvent->cooldown)
Milliseconds cooldown = Milliseconds::zero();
if (prepare && i->spellProcEvent && i->spellProcEvent->cooldown)
cooldown = i->spellProcEvent->cooldown;
// Note: must SetCantProc(false) before return