Guest User

Untitled

a guest
Nov 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. diff --git a/src/game/Map.cpp b/src/game/Map.cpp
  2. index 6a267fe..6a4a5e1 100644
  3. --- a/src/game/Map.cpp
  4. +++ b/src/game/Map.cpp
  5. @@ -1261,9 +1261,8 @@ bool DungeonMap::CanEnter(Player *player)
  6. return false;
  7. }
  8.  
  9. - // cannot enter while players in the instance are in combat
  10. - Group *pGroup = player->GetGroup();
  11. - if(pGroup && pGroup->InCombatToInstance(GetInstanceId()) && player->isAlive() && player->GetMapId() != GetId())
  12. + // cannot enter while an encounter in the instance is in progress
  13. + if (!player->isGameMaster() && GetInstanceData() && GetInstanceData()->IsEncounterInProgress() && player->GetMapId() != GetId())
  14. {
  15. player->SendTransferAborted(GetId(), TRANSFER_ABORT_ZONE_IN_COMBAT);
  16. return false;
Add Comment
Please, Sign In to add comment