[8570] allow negative spawntimesecs also when NoDamageImmune is 0

thx to crackm for report and investigations :)
This commit is contained in:
balrok 2009-09-30 15:07:54 +02:00
parent 9204ed5eb5
commit b2e32f4ff9
2 changed files with 2 additions and 2 deletions

View file

@ -602,7 +602,7 @@ bool GameObject::LoadFromDB(uint32 guid, Map *map)
if (!Create(guid,entry, map, phaseMask, x, y, z, ang, rotation0, rotation1, rotation2, rotation3, animprogress, go_state) )
return false;
if(!GetGOInfo()->GetDespawnPossibility() && !GetGOInfo()->IsDespawnAtAction())
if (!GetGOInfo()->GetDespawnPossibility() && !GetGOInfo()->IsDespawnAtAction() && data->spawntimesecs >= 0)
{
SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_NODESPAWN);
m_spawnedByDefault = true;