*Prevent entering in instances if zone in combat - by Iskander

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-02-13 23:53:06 +01:00
parent ffb5fb7445
commit 29f3d67fb8
4 changed files with 14 additions and 3 deletions

View File

@@ -1762,7 +1762,7 @@ bool InstanceMap::CanEnter(Player *player)
// cannot enter while players in the instance are in combat
Group *pGroup = player->GetGroup();
if(!player->isGameMaster() && pGroup && pGroup->InCombatToInstance(GetInstanceId()) && player->isAlive() && player->GetMapId() != GetId())
if(!player->isGameMaster() && pGroup && pGroup->InCombatToInstance(GetInstanceId()) && player->GetMapId() != GetId())
{
player->SendTransferAborted(GetId(), TRANSFER_ABORT_ZONE_IN_COMBAT);
return false;