Do not compute incoming time for self casts.
--HG-- branch : trunk
This commit is contained in:
+2
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user