[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:
1 parent
fbef4e3abf
commit
b3bdc26a11
1 file changed
+1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user