mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Cleanup code for UNIT_FIELD_BYTES_1 parts.
Move defines to Unit (values can be used with creatures) Better gameobject barber chairs check at loading.
This commit is contained in:
parent
af888cda40
commit
a1b5c3cb02
10 changed files with 75 additions and 76 deletions
|
|
@ -944,7 +944,7 @@ void GameObject::Use(Unit* user)
|
|||
// fallback, will always work
|
||||
player->TeleportTo(GetMapId(), GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation(),TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | TELE_TO_NOT_UNSUMMON_PET);
|
||||
}
|
||||
player->SetStandState(PLAYER_STATE_SIT_LOW_CHAIR+info->chair.height);
|
||||
player->SetStandState(UNIT_STAND_STATE_SIT_LOW_CHAIR+info->chair.height);
|
||||
return;
|
||||
}
|
||||
//big gun, its a spell/aura
|
||||
|
|
@ -1255,7 +1255,7 @@ void GameObject::Use(Unit* user)
|
|||
WorldPacket data(SMSG_ENABLE_BARBER_SHOP, 0);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
|
||||
player->SetStandState(PLAYER_STATE_SIT_LOW_CHAIR+info->barberChair.chairheight);
|
||||
player->SetStandState(UNIT_STAND_STATE_SIT_LOW_CHAIR+info->barberChair.chairheight);
|
||||
return;
|
||||
}
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue