aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-31 14:26:57 -0500
committermegamage <none@none>2009-05-31 14:26:57 -0500
commitda871e2fc07ef529beea3d3e8a52518bde842775 (patch)
tree7314d7c7b03304d75d606874693cf565e95daa28 /src/game/Creature.cpp
parent8d1f4f9ea0beb503e2a3014abb95263e501ef1c5 (diff)
*Move addcre/go functions from opvp to objmgr.
*Do not save respawn time for internally added cre/go. --HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 01a3b057ce9..0627f6419fb 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -1532,6 +1532,9 @@ bool Creature::LoadFromDB(uint32 guid, Map *map)
// checked at creature_template loading
m_defaultMovementType = MovementGeneratorType(data->movementType);
+ if(!data->dbData)
+ SetInternallyAdded();
+
return true;
}
@@ -2079,7 +2082,7 @@ bool Creature::CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction /
void Creature::SaveRespawnTime()
{
- if(isPet() || !m_DBTableGuid)
+ if(isSummon() || !m_DBTableGuid || m_isInternallyAdded)
return;
if(m_respawnTime > time(NULL)) // dead (no corpse)