Core/Groups: more fixes to battlefield group stuff

This commit is contained in:
tobmaps
2011-06-28 06:43:39 +07:00
parent daf97501b9
commit 78859c9963
+3 -2
View File
@@ -436,7 +436,8 @@ bool Group::RemoveMember(const uint64 &guid, const RemoveMethod &method /*= GROU
} }
// Remove player from group in DB // Remove player from group in DB
CharacterDatabase.PExecute("DELETE FROM group_member WHERE memberGuid=%u", GUID_LOPART(guid)); if (!isBGGroup() && !isBFGroup())
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 // Reevaluate group enchanter if the leaving player had enchanting skill or the player is offline
if ((player && player->GetSkillValue(SKILL_ENCHANTING)) || !player) if ((player && player->GetSkillValue(SKILL_ENCHANTING)) || !player)
@@ -1539,7 +1540,7 @@ void Group::SetDungeonDifficulty(Difficulty difficulty)
{ {
m_dungeonDifficulty = difficulty; m_dungeonDifficulty = difficulty;
if (!isBGGroup() && !isBFGroup()) 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()) for (GroupReference *itr = GetFirstMember(); itr != NULL; itr = itr->next())
{ {