Restore hack for instance dungeon difficulty reset exploit.

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2010-01-13 14:45:56 +03:00
parent 92d3209ab2
commit 7a4e793c02

View File

@@ -1499,7 +1499,9 @@ void Group::SetDungeonDifficulty(Difficulty difficulty)
continue;
player->SetDungeonDifficulty(difficulty);
player->SendDungeonDifficulty(true);
//send player to recall positio nis a dungeon (to avoid an exploit)
// Send player to recall position is 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);
}
}