Revert "Core/Groups: more fixes to battlefield group stuff"

This reverts commit 78859c9963.
This commit is contained in:
kaelima
2011-06-28 13:04:25 +02:00
parent 3f1beaba4a
commit 58febb14a2
+2 -3
View File
@@ -436,8 +436,7 @@ bool Group::RemoveMember(const uint64 &guid, const RemoveMethod &method /*= GROU
}
// Remove player from group in DB
if (!isBGGroup() && !isBFGroup())
CharacterDatabase.PExecute("DELETE FROM group_member WHERE memberGuid=%u", GUID_LOPART(guid));
CharacterDatabase.PExecute("DELETE FROM group_member WHERE memberGuid=%u", GUID_LOPART(guid));
// Reevaluate group enchanter if the leaving player had enchanting skill or the player is offline
if ((player && player->GetSkillValue(SKILL_ENCHANTING)) || !player)
@@ -1540,7 +1539,7 @@ void Group::SetDungeonDifficulty(Difficulty difficulty)
{
m_dungeonDifficulty = difficulty;
if (!isBGGroup() && !isBFGroup())
CharacterDatabase.PExecute("UPDATE groups SET difficulty = %u WHERE guid ='%u'", m_dungeonDifficulty, m_dbStoreId);
CharacterDatabase.PExecute("UPDATE groups SET difficulty = %u WHERE guid ='%u'", m_dungeonDifficulty, m_dbStoreId);
for (GroupReference *itr = GetFirstMember(); itr != NULL; itr = itr->next())
{