From 3d90d921cc3509a0c21a6a6ca6df20104e91930b Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Wed, 27 Apr 2011 16:11:59 +0400 Subject: [PATCH] [11402] More info about spell effect targets in debug output. After deep past switch to per-target apply spell effects at cast old debug output has been non-informative for multi-target spells. --- src/game/Spell.cpp | 6 +++++- src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 8302f3224..9af84f284 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -4363,7 +4363,11 @@ void Spell::HandleEffects(Unit *pUnitTarget,Item *pItemTarget,GameObject *pGOTar damage = int32(CalculateDamage(i, unitTarget) * DamageMultiplier); - DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Spell %u Effect%d : %u", m_spellInfo->Id, i, eff); + DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "Spell %u Effect%d : %u Targets: %s, %s, %s", + m_spellInfo->Id, i, eff, + unitTarget ? unitTarget->GetGuidStr().c_str() : "-", + itemTarget ? itemTarget->GetGuidStr().c_str() : "-", + gameObjTarget ? gameObjTarget->GetGuidStr().c_str() : "-"); if(eff < TOTAL_SPELL_EFFECTS) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 32c0873c0..c0d41537f 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11401" + #define REVISION_NR "11402" #endif // __REVISION_NR_H__