mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11123] Move respawn data to InstanceSave.
This make prev commit more useful. In future InstanceSave also planned store local pools state.
This commit is contained in:
parent
852c4ddf32
commit
6cfa64db97
13 changed files with 258 additions and 191 deletions
|
|
@ -553,14 +553,13 @@ bool ChatHandler::HandleGonameCommand(char* args)
|
|||
// if no bind exists, create a solo bind
|
||||
if (!gBind)
|
||||
{
|
||||
if (InstanceSave *save = target->GetMap()->GetInstanceSave())
|
||||
{
|
||||
// if player is group leader then we need add group bind
|
||||
if (group && group->IsLeader(_player->GetObjectGuid()))
|
||||
group->BindToInstance(save, !save->CanReset());
|
||||
else
|
||||
_player->BindToInstance(save, !save->CanReset());
|
||||
}
|
||||
InstanceSave *save = target->GetMap()->GetInstanceSave();
|
||||
|
||||
// if player is group leader then we need add group bind
|
||||
if (group && group->IsLeader(_player->GetObjectGuid()))
|
||||
group->BindToInstance(save, !save->CanReset());
|
||||
else
|
||||
_player->BindToInstance(save, !save->CanReset());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue