From 375be3648eff0210e5507e71f20cf2581c3cde9d Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 26 May 2009 15:29:59 -0500 Subject: [PATCH] *Remove puppet when it is killed. --HG-- branch : trunk --- src/game/TemporarySummon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index 5c7ca2a48e..2be94e29c3 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -320,14 +320,12 @@ Puppet::Puppet(SummonPropertiesEntry const *properties, Unit *owner) : Minion(pr assert(owner->GetTypeId() == TYPEID_PLAYER); m_owner = (Player*)owner; m_summonMask |= SUMMON_MASK_PUPPET; - InitCharmInfo(); } void Puppet::InitStats(uint32 duration) { Minion::InitStats(duration); - - m_charmInfo->InitPossessCreateSpells(); + SetLevel(m_owner->getLevel()); SetReactState(REACT_PASSIVE); } @@ -343,6 +341,8 @@ void Puppet::Update(uint32 time) //check if caster is channelling? if(IsInWorld()) { + if(!isAlive()) + UnSummon(); } }