*Prevent entering in instances if zone in combat - by Iskander
--HG-- branch : trunk
This commit is contained in:
1 parent
ffb5fb7445
commit
29f3d67fb8
4 files changed
+14
-3
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user