mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Remove hack added in 6413. Fixes crash.
--HG-- branch : trunk
This commit is contained in:
@@ -1452,7 +1452,8 @@ void Roll::targetObjectBuildLink()
|
||||
void Group::SetDifficulty(uint8 difficulty)
|
||||
{
|
||||
m_difficulty = difficulty;
|
||||
if(!isBGGroup()) CharacterDatabase.PExecute("UPDATE groups SET difficulty = %u WHERE leaderGuid ='%u'", m_difficulty, GUID_LOPART(m_leaderGuid));
|
||||
if (!isBGGroup())
|
||||
CharacterDatabase.PExecute("UPDATE groups SET difficulty = %u WHERE leaderGuid ='%u'", m_difficulty, GUID_LOPART(m_leaderGuid));
|
||||
|
||||
for (GroupReference *itr = GetFirstMember(); itr != NULL; itr = itr->next())
|
||||
{
|
||||
@@ -1461,9 +1462,6 @@ void Group::SetDifficulty(uint8 difficulty)
|
||||
continue;
|
||||
player->SetDifficulty(difficulty);
|
||||
player->SendDungeonDifficulty(true);
|
||||
//send player to recall positio nis a dungeon (to avoid an exploit)
|
||||
if (sMapStore.LookupEntry(player->GetMap()->IsDungeon()))
|
||||
player->TeleportTo(player->m_recallMap, player->m_recallX, player->m_recallY, player->m_recallZ, player->m_recallO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user