Skip to content

Commit

Permalink
[11974] Fix spell targeting for some spells like 20243
Browse files Browse the repository at this point in the history
Signed-off-by: Schmoozerd <[email protected]>
  • Loading branch information
Reamer authored and Schmoozerd committed Apr 22, 2012
1 parent c697d8a commit 806d27b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/game/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ void Spell::FillTargetMap()
{
// not call for empty effect.
// Also some spells use not used effect targets for store targets for dummy effect in triggered spells
if (m_spellInfo->Effect[i] == 0)
if (m_spellInfo->Effect[i] == SPELL_EFFECT_NONE)
continue;

// targets for TARGET_SCRIPT_COORDINATES (A) and TARGET_SCRIPT
Expand All @@ -470,6 +470,7 @@ void Spell::FillTargetMap()
{
// Check if same target, but handle i.e. AreaAuras different
if (m_spellInfo->EffectImplicitTargetA[i] == m_spellInfo->EffectImplicitTargetA[j] && m_spellInfo->EffectImplicitTargetB[i] == m_spellInfo->EffectImplicitTargetB[j]
&& m_spellInfo->Effect[j] != SPELL_EFFECT_NONE
&& !IsAreaAuraEffect(m_spellInfo->Effect[i]) && !IsAreaAuraEffect(m_spellInfo->Effect[j]))
// Add further conditions here if required
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11973"
#define REVISION_NR "11974"
#endif // __REVISION_NR_H__

0 comments on commit 806d27b

Please sign in to comment.