*let petattack command use provided guid instead of player selection. By thenecromancer

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-29 18:04:56 -05:00
parent e695016e94
commit 59e79dfef0

View File

@@ -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;