*Add some debug info to procflag

*Fix Sudden Death.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-04-13 20:50:52 +02:00
parent b972327979
commit f46d1b3b81
4 changed files with 20 additions and 9 deletions
+4 -5
View File
@@ -16454,19 +16454,18 @@ void Player::RemovePet(Pet* pet, PetSaveMode mode, bool returnreagent)
}
}
pet->SavePetToDB(mode);
// only if current pet in slot
switch(pet->getPetType())
{
case POSSESSED_PET:
pet->RemoveCharmedOrPossessedBy(NULL);
break;
default:
pet->SavePetToDB(mode);
SetGuardian(pet, false);
break;
}
SetGuardian(pet, false);
pet->CleanupsBeforeDelete();
pet->AddObjectToRemoveList();
pet->m_removed = true;
@@ -17988,7 +17987,7 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool
return false;
}
if(u->GetVisibility() == VISIBILITY_OFF || u->m_invisibilityMask )
if(u->GetVisibility() == VISIBILITY_OFF)
{
// GMs see any players, not higher GMs and all units
if(isGameMaster())