*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
@@ -266,3 +266,11 @@ void MapInstanced::DestroyInstance(InstancedMaps::iterator &itr)
|
||||
delete itr->second;
|
||||
m_InstancedMaps.erase(itr++);
|
||||
}
|
||||
|
||||
bool MapInstanced::CanEnter(Player *player)
|
||||
{
|
||||
if(Map* map = GetInstance(player))
|
||||
return map->CanEnter(player);
|
||||
|
||||
return false;
|
||||
}
|
||||
Reference in new issue
Block a user