aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 76fa2922d19..a6f47e63a3c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -913,7 +913,8 @@ void Spell::AddUnitTarget(Unit* pVictim, uint32 effIndex)
target.missCondition = SPELL_MISS_EVADE; //SPELL_MISS_NONE;
// Spell have speed - need calculate incoming time
- if (m_spellInfo->speed > 0.0f)
+ // Incoming time is zero for self casts. At least I think so.
+ if (m_spellInfo->speed > 0.0f && m_caster != pVictim)
{
// calculate spell incoming interval
// TODO: this is a hack