Core/Entities: bg vehicle will also have charmer's faction (save faction before charm and restore old faction after charm)
This commit is contained in:
1 parent
45dc95c8dc
commit
940e52236b
7 files changed
+109
-126
No files matched your search
@@ -759,7 +759,6 @@ Player::Player(WorldSession* session): Unit(true)
|
||||
m_ArmorProficiency = 0;
|
||||
m_canParry = false;
|
||||
m_canBlock = false;
|
||||
m_canDualWield = false;
|
||||
m_canTitanGrip = false;
|
||||
m_ammoDPS = 0.0f;
|
||||
|
||||
@@ -23769,14 +23768,18 @@ void Player::ResurectUsingRequestData()
|
||||
SpawnCorpseBones();
|
||||
}
|
||||
|
||||
void Player::SetClientControl(Unit* target, uint8 allowMove)
|
||||
void Player::SetClientControl(Unit* target, bool allowMove)
|
||||
{
|
||||
WorldPacket data(SMSG_CLIENT_CONTROL_UPDATE, target->GetPackGUID().size()+1);
|
||||
data.append(target->GetPackGUID());
|
||||
data << uint8(allowMove);
|
||||
data << uint8(allowMove ? 1 : 0);
|
||||
GetSession()->SendPacket(&data);
|
||||
if (target == this)
|
||||
SetMover(this);
|
||||
|
||||
if (this != target)
|
||||
SetViewpoint(target, allowMove);
|
||||
|
||||
if (allowMove)
|
||||
SetMover(target);
|
||||
}
|
||||
|
||||
void Player::SetMover(Unit* target)
|
||||
|
||||
Reference in new issue
Block a user