From b3bdc26a110bca8672cfa2a13cd1415199811ad8 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 3 Nov 2008 08:29:04 -0600 Subject: [PATCH] [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 --- src/game/Unit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index f076595c2e..91821febb3 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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); }