Core/Spells: merged some spell focussing and unit state changes

This commit is contained in:
Ovahlord committed 2018-04-29 12:54:38 +02:00
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);