From d6bd04ab0d813e99ab1c7d61d0d71c3da2fe0ae4 Mon Sep 17 00:00:00 2001 From: BroodWyrm Date: Thu, 16 Jul 2009 20:27:53 +0200 Subject: * Add script for Val'kyr Battle-maiden - patch provided by Drethek * Add summonerguid to summons by spell --HG-- branch : trunk --- src/game/SpellEffects.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/game/SpellEffects.cpp') 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; } -- cgit v1.2.3