Changeset 151 for trunk

Show
Ignore:
Timestamp:
11/19/08 13:41:00 (17 years ago)
Author:
yumileroy
Message:

[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.

Original author: megamage
Date: 2008-11-03 08:29:04-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Unit.cpp

    r149 r151  
    10001000    SpellCastTargets targets; 
    10011001    targets.setUnitTarget( Victim ); 
     1002    targets.setDestination( Victim->GetPositionX(), Victim->GetPositionY(), Victim->GetPositionZ(), false); 
    10021003    spell->m_CastItem = castItem; 
    10031004    spell->prepare(&targets, triggredByAura);