*Fix Piercing Shots - by freeganja.

*Clear movement generators for unit when removing from world.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-07-22 22:52:05 +02:00
1 parent 974fad377e
commit 9d501da1b8
4 files changed
+30 -2

No files matched your search

+2
View File
@@ -3368,6 +3368,8 @@ void Spell::EffectSummonType(uint32 i)
TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN;
TempSummon * summon = m_originalCaster->SummonCreature(entry,px,py,pz,m_caster->GetOrientation(),summonType,duration);
if (!summon)
continue;
summon->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_originalCaster->GetGUID());
if (properties->Category == SUMMON_CATEGORY_ALLY)
summon->setFaction(m_originalCaster->getFaction());