[svn] Fix the bug that summoned creatures may respawn.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-10-25 01:39:51 -05:00
parent 0a3057972c
commit e22427d4b0
+5
View File
@@ -32,6 +32,11 @@ Creature(), m_type(TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN), m_timer(0), m_lifetime(0
void TemporarySummon::Update( uint32 diff ) void TemporarySummon::Update( uint32 diff )
{ {
if (m_deathState == DEAD)
{
UnSummon();
return;
}
switch(m_type) switch(m_type)
{ {
case TEMPSUMMON_MANUAL_DESPAWN: case TEMPSUMMON_MANUAL_DESPAWN: