From f919fb47c50d9aac4e87c367d4b1a27be9c72382 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 7 Jun 2009 23:33:18 -0500 Subject: *Move creature::update before summon timer check to prevent to lose the last tick. --HG-- branch : trunk --- src/game/TemporarySummon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index d4c4d54fb1d..7a405fc57ec 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -39,6 +39,8 @@ Unit* TempSummon::GetSummoner() const void TempSummon::Update( uint32 diff ) { + Creature::Update(diff); + if (m_deathState == DEAD) { UnSummon(); @@ -162,8 +164,6 @@ void TempSummon::Update( uint32 diff ) sLog.outError("Temporary summoned creature (entry: %u) have unknown type %u of ",GetEntry(),m_type); break; } - - Creature::Update( diff ); } void TempSummon::InitStats(uint32 duration) -- cgit v1.2.3