diff options
author | BroodWyrm <none@none> | 2009-07-16 20:27:53 +0200 |
---|---|---|
committer | BroodWyrm <none@none> | 2009-07-16 20:27:53 +0200 |
commit | d6bd04ab0d813e99ab1c7d61d0d71c3da2fe0ae4 (patch) | |
tree | 14a2d355887175e37d8590b7e6835d864d1deaeb /src/game/SpellEffects.cpp | |
parent | e152ff8ec5fc3282b0ab3d1740f05886f90335ed (diff) |
* Add script for Val'kyr Battle-maiden - patch provided by Drethek
* Add summonerguid to summons by spell
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index b34fab6afc9..20c60fdb0a3 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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; } |