* Add script for Val'kyr Battle-maiden - patch provided by Drethek

* Add summonerguid to summons by spell

--HG--
branch : trunk
This commit is contained in:
BroodWyrm
2009-07-16 20:27:53 +02:00
parent e152ff8ec5
commit d6bd04ab0d
5 changed files with 111 additions and 4 deletions

View File

@@ -3461,11 +3461,9 @@ 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);
summon->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_originalCaster->GetGUID());
if (properties->Category == SUMMON_CATEGORY_ALLY)
{
summon->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_originalCaster->GetGUID());
summon->setFaction(m_originalCaster->getFaction());
}
}
break;
}