Пример #1
0
void Player::MorphFit(bool value)
{
    if (!IsPlayingNative() && value)
    {
        if (GetOTeam() == HORDE)
        {
            if (getGender() == GENDER_MALE)
            {
                SetDisplayId(19723);
                SetNativeDisplayId(19723);
            }
            else
            {
                SetDisplayId(19724);
                SetNativeDisplayId(19724);
            }
        }
        else
        {
            if (getGender() == GENDER_MALE)
            {
                SetDisplayId(20578);
                SetNativeDisplayId(20578);
            }
            else
            {
                SetDisplayId(20579);
                SetNativeDisplayId(20579);
            }
        }
    }
    else
        InitDisplayIds();
}
Пример #2
0
void Player::MorphFit(bool value)
{
    if (!IsPlayingNative() && value)
    {
        SetDisplayId(GetFakeMorph());
        SetNativeDisplayId(GetFakeMorph());
    }
    else
        InitDisplayIds();
}
Пример #3
0
void CPlayer::LeaveBattleGround(BattleGround* bg)
{
    if (bg->isArena())
        return;

    SetByteValue(UNIT_FIELD_BYTES_0, 0, getORace());
    setFaction(getOFaction());
    InitDisplayIds();

    SetFakedPlayers(m_FakedPlayers);
    SetRecache();

    SetUInt32Value(PLAYER_BYTES, getOPlayerBytes());
    SetUInt32Value(PLAYER_BYTES_2, getOPlayerBytes2());
}