Do not compute incoming time for self casts.

--HG--
branch : trunk
This commit is contained in:
Astellar
2010-01-11 22:24:31 +03:00
parent ebc5901161
commit b2082db189
+2 -1
View File
@@ -913,7 +913,8 @@ void Spell::AddUnitTarget(Unit* pVictim, uint32 effIndex)
target.missCondition = SPELL_MISS_EVADE; //SPELL_MISS_NONE; target.missCondition = SPELL_MISS_EVADE; //SPELL_MISS_NONE;
// Spell have speed - need calculate incoming time // 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 // calculate spell incoming interval
// TODO: this is a hack // TODO: this is a hack