[8108] Fixed a case in resetting group binds where the actual map reset was done even though it had permanent binds.
This is a temp fix as the function should be rewritten to be more clear / less error prone. Author: lukaasm --HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -1510,7 +1510,7 @@ void Group::ResetInstances(uint8 method, Player* SendMsgTo)
|
|||||||
bool isEmpty = true;
|
bool isEmpty = true;
|
||||||
// if the map is loaded, reset it
|
// if the map is loaded, reset it
|
||||||
Map *map = MapManager::Instance().FindMap(p->GetMapId(), p->GetInstanceId());
|
Map *map = MapManager::Instance().FindMap(p->GetMapId(), p->GetInstanceId());
|
||||||
if(map && map->IsDungeon())
|
if(map && map->IsDungeon() && !(method == INSTANCE_RESET_GROUP_DISBAND && !p->CanReset()))
|
||||||
{
|
{
|
||||||
if(p->CanReset())
|
if(p->CanReset())
|
||||||
isEmpty = ((InstanceMap*)map)->Reset(method);
|
isEmpty = ((InstanceMap*)map)->Reset(method);
|
||||||
|
|||||||
Reference in New Issue
Block a user