mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
*let petattack command use provided guid instead of player selection. By thenecromancer
--HG-- branch : trunk
This commit is contained in:
@@ -107,8 +107,7 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
|
||||
}
|
||||
// only place where pet can be player
|
||||
pet->clearUnitState(UNIT_STAT_FOLLOW);
|
||||
uint64 selguid = _player->GetSelection();
|
||||
Unit *TargetUnit = ObjectAccessor::GetUnit(*_player, selguid);
|
||||
Unit *TargetUnit = ObjectAccessor::GetUnit(*_player, guid2);
|
||||
if(!TargetUnit)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user