*Fix snake trap.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-09 17:02:29 +02:00
parent 0687722812
commit 5206cd8a4e
2 changed files with 13 additions and 22 deletions

View File

@@ -3468,7 +3468,9 @@ void Spell::EffectSummonType(uint32 i)
TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN;
m_originalCaster->SummonCreature(entry,px,py,pz,m_caster->GetOrientation(),summonType,duration);
TempSummon * summon = m_originalCaster->SummonCreature(entry,px,py,pz,m_caster->GetOrientation(),summonType,duration);
if (properties->Category == SUMMON_CATEGORY_ALLY)
summon->setFaction(m_caster->getFaction());
}
break;
}