From 7a4e793c027a9f706cbaefe5ebe9f9fe1d96b87e Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Wed, 13 Jan 2010 14:45:56 +0300 Subject: Restore hack for instance dungeon difficulty reset exploit. --HG-- branch : trunk --- src/game/Group.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/Group.cpp b/src/game/Group.cpp index a1585acd41b..b2db3ed46a2 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -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); } } -- cgit v1.2.3