[svn] Set destination when calling CastSpell. This should fix the bug that seed of corruption does not work and "cannot find destination for spell" spams. Not sure if this is the correct way to fix it.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-11-03 08:29:04 -06:00
1 parent fbef4e3abf
commit b3bdc26a11
1 file changed
+1
+1
View File
@@ -999,6 +999,7 @@ void Unit::CastSpell(Unit* Victim,SpellEntry const *spellInfo, bool triggered, I
SpellCastTargets targets;
targets.setUnitTarget( Victim );
targets.setDestination( Victim->GetPositionX(), Victim->GetPositionY(), Victim->GetPositionZ(), false);
spell->m_CastItem = castItem;
spell->prepare(&targets, triggredByAura);
}