diff options
author | megamage <none@none> | 2009-01-08 21:48:38 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-08 21:48:38 -0600 |
commit | 2377f49ea86b5c6a7f29b5d1949cd90b1594b660 (patch) | |
tree | d0d62dd56391544b4a09d0be189d28fefd339769 /src/game/SpellEffects.cpp | |
parent | b57516e170cb3dd09ee7d4335dee0f8bbbc4a1df (diff) |
*Update charm and possess code.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index fc9f132e23d..4c2c28e64e4 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3704,7 +3704,7 @@ void Spell::EffectSummonPossessed(uint32 i) TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_OR_DEAD_DESPAWN; Creature* c = m_caster->SummonCreature(creatureEntry, px, py, pz, m_caster->GetOrientation(), summonType, duration); - ((Player*)m_caster)->Possess(c); + if(c) c->SetCharmedOrPossessedBy(m_caster, true); } void Spell::EffectTeleUnitsFaceCaster(uint32 i) |