diff --git a/src/game/Entities/Unit/Unit.h b/src/game/Entities/Unit/Unit.h index 8fc08182e..727c60a87 100644 --- a/src/game/Entities/Unit/Unit.h +++ b/src/game/Entities/Unit/Unit.h @@ -2410,7 +2410,9 @@ class Unit : public WorldObject // cooldowns virtual bool HasSpellCooldown(uint32 /*spell_id*/) const { return false; } virtual bool HasSpellItemCooldown(uint32 /*spell_id*/, uint32 /*itemid*/) const { return false; } - virtual void AddSpellCooldown(uint32 /*spell_id*/, uint32 /*itemid*/, uint32 /*end_time*/, bool needSendToClient = false, bool forceSendToSpectator = false); + virtual void AddSpellCooldown(uint32 /*spell_id*/, uint32 /*itemid*/, uint32 /*end_time*/, bool needSendToClient = false, bool forceSendToSpectator = false) { + needSendToClient = forceSendToSpectator = false; // workaround for unused parameters + } bool CanApplyResilience() const { return m_applyResilience; }