mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
Fixed spell casting destination to require ENABLE_LOGS and ENABLE_EXTRA_LOGS to be enabled (#646)
* Fixed spell casting destination to require ENABLE_LOGS and ENABLE_EXTRA_LOGS to be enabled (#601) * Fixed line spacing * Fixed file spacing * Revert "Fixed file spacing" This reverts commit c32f081fe2ea59b9206887fb5aee0236c49a744c. * Revert "Fixed line spacing" This reverts commit 5a922bbfe819aa435a797056f30571b93503c6ae. * Revert "Fixed spell casting destination to require ENABLE_LOGS and ENABLE_EXTRA_LOGS to be enabled (#601)" This reverts commit 0d57b3c27320df09e230553f346d850f8bb43bcd. * Fixed spell casting destination to require ENABLE_LOGS and ENABLE_EXTRA_LOGS to be enabled
This commit is contained in:
@@ -991,9 +991,11 @@ void Spell::SelectImplicitChannelTargets(SpellEffIndex effIndex, SpellImplicitTa
|
||||
AddUnitTarget(target->ToUnit(), 1 << effIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "SPELL: cannot find channel spell target for spell ID %u, effect %u", m_spellInfo->Id, effIndex);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TARGET_DEST_CHANNEL_TARGET:
|
||||
@@ -1006,9 +1008,11 @@ void Spell::SelectImplicitChannelTargets(SpellEffIndex effIndex, SpellImplicitTa
|
||||
m_targets.SetDst(*target);
|
||||
}
|
||||
else //if (!m_targets.HasDst())
|
||||
{
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "SPELL: cannot find channel spell destination for spell ID %u, effect %u", m_spellInfo->Id, effIndex);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case TARGET_DEST_CHANNEL_CASTER:
|
||||
if (GetOriginalCaster())
|
||||
|
||||
Reference in New Issue
Block a user