Core/Spells: merged some spell focussing and unit state changes
This commit is contained in:
1 parent
f1c54a4529
commit
a241ee78e9
7 files changed
+56
-35
No files matched your search
@@ -24934,6 +24934,10 @@ void Player::ResurrectUsingRequestData()
|
||||
|
||||
void Player::SetClientControl(Unit* target, bool allowMove)
|
||||
{
|
||||
// still affected by some aura that shouldn't allow control, only allow on last such aura to be removed
|
||||
if (allowMove && target->HasUnitState(UNIT_STATE_CANT_CLIENT_CONTROL))
|
||||
return;
|
||||
|
||||
WorldPacket data(SMSG_CLIENT_CONTROL_UPDATE, target->GetPackGUID().size()+1);
|
||||
data << target->GetPackGUID();
|
||||
data << uint8(allowMove ? 1 : 0);
|
||||
|
||||
Reference in new issue
Block a user