[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:
@@ -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