[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.
This commit is contained in:
VladimirMangos 2011-04-27 16:11:59 +04:00
parent 8c91b6509d
commit 3d90d921cc
2 changed files with 6 additions and 2 deletions

View file

@ -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)
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11401"
#define REVISION_NR "11402"
#endif // __REVISION_NR_H__