From b2082db189764da1ec222a5b556ea11459fba4c0 Mon Sep 17 00:00:00 2001 From: Astellar Date: Mon, 11 Jan 2010 22:24:31 +0300 Subject: [PATCH] Do not compute incoming time for self casts. --HG-- branch : trunk --- src/game/Spell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 76fa2922d1..a6f47e63a3 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