aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-11 13:03:06 +0200
committerQAston <none@none>2009-07-11 13:03:06 +0200
commit4dc5242a6939fd172ea7bfb293125de51f654e5b (patch)
tree61386e3cd0b2dbb1da88d75cef03e30991efb102 /src/game/SpellEffects.cpp
parent043932dbea0829cf2894a20de811e2406daf7f25 (diff)
*Fix Desecration.
*Correct a typo which made some of charged auras to be not dropped. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 44a30705784..3294c32bde8 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3470,7 +3470,10 @@ void Spell::EffectSummonType(uint32 i)
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());
+ {
+ summon->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_originalCaster->GetGUID());
+ summon->setFaction(m_originalCaster->getFaction());
+ }
}
break;
}