Fixed warnings when EXTRA_LOGS are off

This commit is contained in:
Yehonal
2017-09-25 10:54:21 +02:00
parent e687d223ff
commit dcdddf658b
11 changed files with 25 additions and 13 deletions

View File

@@ -6653,6 +6653,9 @@ void AuraEffect::HandleProcTriggerSpellWithValueAuraProc(AuraApplication* aurApp
uint32 triggerSpellId = GetSpellInfo()->Effects[m_effIndex].TriggerSpell;
if (SpellInfo const* triggeredSpellInfo = sSpellMgr->GetSpellInfo(triggerSpellId))
{
// used only with EXTRA_LOGS
UNUSED(triggeredSpellInfo);
int32 basepoints0 = GetAmount();
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "AuraEffect::HandleProcTriggerSpellWithValueAuraProc: Triggering spell %u with value %d from aura %u proc", triggeredSpellInfo->Id, basepoints0, GetId());