mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[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:
parent
8c91b6509d
commit
3d90d921cc
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11401"
|
||||
#define REVISION_NR "11402"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue