From 49ee73a36d20e22881522fb919572132ae76b55a Mon Sep 17 00:00:00 2001 From: tartalo Date: Wed, 2 Dec 2009 12:42:58 +0100 Subject: Teleport in-dungeon players to recall position when difficulty changes to avoid an exploit. Closes #58 --HG-- branch : trunk --- src/game/Group.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/game/Group.cpp b/src/game/Group.cpp index 56a2539a798..4657136ddf4 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -1461,6 +1461,9 @@ 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); } } -- cgit v1.2.3