From e22427d4b0f962729957d6dd6aeb85975419cd18 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 25 Oct 2008 01:39:51 -0500 Subject: [svn] Fix the bug that summoned creatures may respawn. --HG-- branch : trunk --- src/game/TemporarySummon.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/TemporarySummon.cpp') diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index d8884e61c9e..e46cda6143d 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -32,6 +32,11 @@ Creature(), m_type(TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN), m_timer(0), m_lifetime(0 void TemporarySummon::Update( uint32 diff ) { + if (m_deathState == DEAD) + { + UnSummon(); + return; + } switch(m_type) { case TEMPSUMMON_MANUAL_DESPAWN: -- cgit v1.2.3