diff options
| author | Golrag <Golrag@users.noreply.github.com> | 2016-07-08 21:52:30 +0200 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-02-05 00:57:18 +0100 |
| commit | 140d7828c838faade59d3faffb87dccd4200f384 (patch) | |
| tree | 01f27091fa7e13b40d0a497a28467e72523a203d | |
| parent | 9046483f3c37bd90fa7e157979129d58a948dedb (diff) | |
Core/Unit: Add proc cooldown to all units (#17546)
(cherry picked from commit 0b9854428657bd5c988e7aeda5b6e4df9a72131a)
# Conflicts:
# src/server/game/Entities/Unit/Unit.cpp
| -rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index db8c96b25b2..946839339f4 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -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) |
