mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 19:53:02 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user