diff options
author | megamage <none@none> | 2008-11-03 08:29:04 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-03 08:29:04 -0600 |
commit | b3bdc26a110bca8672cfa2a13cd1415199811ad8 (patch) | |
tree | 82a62da8c06f7e46aaf58020e6cd423649aeb903 /src | |
parent | fbef4e3abf8126473832c48453aaeb022387c4e6 (diff) |
[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
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index f076595c2e5..91821febb39 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); } |