aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-19 19:45:54 -0500
committermegamage <none@none>2009-04-19 19:45:54 -0500
commit68fd41d2c8990459ca1d82ab82d53cb78d03dd49 (patch)
treee2a2e20de43f864e4818b45425440bb3517c472f /src/game/SpellEffects.cpp
parente1806419be36ac8a1b6b1ea377cfba20b36db720 (diff)
*Fix a bug that pet/charmed cannot AOE neutral creatures.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f69bc3db828..2fbd4a3ade1 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5761,7 +5761,7 @@ void Spell::EffectSummonCritter(uint32 i)
if(!critter)
return;
- critter->SetOwnerGUID(m_caster->GetGUID());
+ critter->SetOwner(m_caster, true);
critter->SetCreatorGUID(m_caster->GetGUID());
critter->SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE,m_caster->getFaction());
critter->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
@@ -6426,7 +6426,7 @@ void Spell::SummonTotem(uint32 entry, SummonPropertiesEntry const *properties)
if(slot >= SUMMON_SLOT_TOTEM && slot < MAX_TOTEM_SLOT)
m_caster->m_SummonSlot[slot] = pTotem->GetGUID();
- pTotem->SetOwner(m_caster->GetGUID());
+ pTotem->SetOwner(m_caster);
pTotem->SetTypeBySummonSpell(m_spellInfo); // must be after Create call where m_spells initilized
int32 duration=GetSpellDuration(m_spellInfo);
@@ -6534,7 +6534,7 @@ void Spell::SummonVehicle(uint32 entry, SummonPropertiesEntry const *properties)
if(!vehicle)
return;
- vehicle->SetOwnerGUID(m_caster->GetGUID());
+ vehicle->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_caster->GetGUID());
vehicle->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
if(damage)